public class DataSchema
extends java.lang.Object
Represents an OData data schema.
Constructor and Description |
---|
DataSchema() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Return (nullable) The alias of this data schema.
|
Annotation |
getAnnotation(java.lang.String term)
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
|
AnnotationMap |
getAnnotations()
Return map of annotations for this model element.
|
AnnotationTermMap |
getAnnotationTerms()
Return map of annotation terms defined by this schema.
|
ComplexTypeMap |
getComplexTypes()
Return map of complex types defined by this schema.
|
DataMethodMap |
getDataMethods()
Return map of data methods defined by this schema.
|
EntityContainerMap |
getEntityContainers()
Return map of entity containers defined by this schema.
|
EntitySetMap |
getEntitySets()
Return map of entity sets defined by this schema.
|
EntityTypeMap |
getEntityTypes()
Return map of entity types defined by this schema.
|
EnumTypeMap |
getEnumTypes()
Return map of enum types defined by this schema.
|
DataMethodMap |
getLookupMethods()
For internal use only.
|
EntitySetMap |
getLookupSets()
For internal use only.
|
EntitySetMap |
getLookupSingletons()
For internal use only.
|
java.lang.String |
getNamespace()
Return the namespace of this data schema.
|
SimpleTypeMap |
getSimpleTypes()
Return map of simple types defined by this schema.
|
EntitySetMap |
getSingletons()
Return map of singletons defined by this schema.
|
int |
getSourceLine()
Return source line number for this schema element within its defining schema.
|
void |
setAlias(java.lang.String value)
Set the alias of this data schema.
|
void |
setNamespace(java.lang.String value)
Set the namespace of this data schema.
|
void |
setSourceLine(int value)
Set source line number for this schema element within its defining schema.
|
public java.lang.String getAlias()
Return (nullable) The alias of this data schema.
public Annotation getAnnotation(java.lang.String term)
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
DataSchema.annotations
and AnnotationMap.get
, for looking up annotations that might not exist.
term
- The term name.public AnnotationTermMap getAnnotationTerms()
Return map of annotation terms defined by this schema.
public AnnotationMap getAnnotations()
Return map of annotations for this model element. For annotations without qualifiers, the entry key is the annotation term name. For annotations with qualifiers, the entry key is the annotation term name, then "#", then the annotation qualifier.
public ComplexTypeMap getComplexTypes()
Return map of complex types defined by this schema.
public DataMethodMap getDataMethods()
Return map of data methods defined by this schema.
public EntityContainerMap getEntityContainers()
Return map of entity containers defined by this schema.
public EntitySetMap getEntitySets()
Return map of entity sets defined by this schema.
public EntityTypeMap getEntityTypes()
Return map of entity types defined by this schema.
public EnumTypeMap getEnumTypes()
Return map of enum types defined by this schema.
public DataMethodMap getLookupMethods()
For internal use only.
public EntitySetMap getLookupSets()
For internal use only.
public EntitySetMap getLookupSingletons()
For internal use only.
public java.lang.String getNamespace()
Return the namespace of this data schema.
public SimpleTypeMap getSimpleTypes()
Return map of simple types defined by this schema.
public EntitySetMap getSingletons()
Return map of singletons defined by this schema.
public int getSourceLine()
Return source line number for this schema element within its defining schema.
public void setAlias(java.lang.String value)
Set the alias of this data schema.
value
- The alias of this data schema.public void setNamespace(java.lang.String value)
Set the namespace of this data schema.
value
- The namespace of this data schema.public void setSourceLine(int value)
Set source line number for this schema element within its defining schema.
value
- Source line number for this schema element within its defining schema.