Package org.oasisopen.odata.csdl.v4
Class Schema
- java.lang.Object
-
- org.oasisopen.odata.csdl.v4.Schema
-
public class Schema extends Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded" minOccurs="0"> <element name="ComplexType" type="{http://docs.oasis-open.org/odata/ns/edm}TComplexType"/> <element name="EntityType" type="{http://docs.oasis-open.org/odata/ns/edm}TEntityType"/> <element name="TypeDefinition" type="{http://docs.oasis-open.org/odata/ns/edm}TTypeDefinition"/> <element name="EnumType" type="{http://docs.oasis-open.org/odata/ns/edm}TEnumType"/> <element name="Action" type="{http://docs.oasis-open.org/odata/ns/edm}TAction"/> <element name="Function" type="{http://docs.oasis-open.org/odata/ns/edm}TFunction"/> <element name="Term" type="{http://docs.oasis-open.org/odata/ns/edm}TTerm"/> <element name="Annotations" type="{http://docs.oasis-open.org/odata/ns/edm}TAnnotations"/> <element name="EntityContainer" type="{http://docs.oasis-open.org/odata/ns/edm}TEntityContainer"/> <element ref="{http://docs.oasis-open.org/odata/ns/edm}Annotation"/> </choice> <attribute name="Namespace" use="required" type="{http://docs.oasis-open.org/odata/ns/edm}TNamespaceName" /> <attribute name="Alias" type="{http://docs.oasis-open.org/odata/ns/edm}TSimpleIdentifier" /> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()Gets the value of the alias property.List<Object>getComplexTypeOrEntityTypeOrTypeDefinition()Gets the value of the complexTypeOrEntityTypeOrTypeDefinition property.StringgetNamespace()Gets the value of the namespace property.voidsetAlias(String value)Sets the value of the alias property.voidsetNamespace(String value)Sets the value of the namespace property.
-
-
-
Method Detail
-
getComplexTypeOrEntityTypeOrTypeDefinition
public List<Object> getComplexTypeOrEntityTypeOrTypeDefinition()
Gets the value of the complexTypeOrEntityTypeOrTypeDefinition property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the complexTypeOrEntityTypeOrTypeDefinition property.For example, to add a new item, do as follows:
getComplexTypeOrEntityTypeOrTypeDefinition().add(newItem);Objects of the following type(s) are allowed in the list
TComplexTypeTEntityTypeTTypeDefinitionTEnumTypeTActionTFunctionTTermTAnnotationsTEntityContainerAnnotation
-
getNamespace
public String getNamespace()
Gets the value of the namespace property.- Returns:
- possible object is
String
-
setNamespace
public void setNamespace(String value)
Sets the value of the namespace property.- Parameters:
value- allowed object isString
-
getAlias
public String getAlias()
Gets the value of the alias property.- Returns:
- possible object is
String
-
-