org.odata4j.edm
Class EdmStructuralType

java.lang.Object
  extended by org.odata4j.edm.EdmItem
      extended by org.odata4j.edm.EdmType
          extended by org.odata4j.edm.EdmNonSimpleType
              extended by org.odata4j.edm.EdmStructuralType
All Implemented Interfaces:
Named
Direct Known Subclasses:
EdmComplexType, EdmEntityType

public abstract class EdmStructuralType
extends EdmNonSimpleType
implements Named

In the Entity Data Model (EDM), structural types are EDM types that have members. Members define the content of the types derived from the StructuralType class. The StructuralType class has several derived types, such as the EdmEntityType and the EdmComplexType.

The EntityType represents a top-level concept, such as a customer or an order in the EDM.

The ComplexType represents a type that includes a set of properties like an entity type but does not include a key property.

See Also:
[msdn] Structural Types (Metadata)

Nested Class Summary
static class EdmStructuralType.Builder<T,TBuilder>
          Mutable builder for EdmStructuralType objects.
 
Nested classes/interfaces inherited from class org.odata4j.edm.EdmType
EdmType.DeferredBuilder<T,TBuilder>
 
Constructor Summary
protected EdmStructuralType(EdmEntityType baseType, String namespace, String name, List<EdmProperty.Builder> declaredProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, Boolean isAbstract)
           
 
Method Summary
 EdmProperty findDeclaredProperty(String name)
          Finds a property by name on this structural type not including inherited properties.
 EdmProperty findProperty(String name)
          Finds a property by name, searching up the type hierarchy if necessary.
 EdmEntityType getBaseType()
           
 Enumerable<EdmProperty> getDeclaredProperties()
          Gets the properties defined for this structural type not including inherited properties.
 Boolean getIsAbstract()
           
 String getName()
          Gets the name.
 String getNamespace()
           
 Enumerable<EdmProperty> getProperties()
          Gets the properties defined for this structural type including inherited properties.
 boolean isRootType()
           
 
Methods inherited from class org.odata4j.edm.EdmNonSimpleType
isSimple
 
Methods inherited from class org.odata4j.edm.EdmType
equals, getFullyQualifiedTypeName, getInstanceType, getSimple, hashCode, newDeferredBuilder, toString
 
Methods inherited from class org.odata4j.edm.EdmItem
findAnnotation, getAnnotations, getDocumentation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdmStructuralType

protected EdmStructuralType(EdmEntityType baseType,
                            String namespace,
                            String name,
                            List<EdmProperty.Builder> declaredProperties,
                            EdmDocumentation doc,
                            ImmutableList<EdmAnnotation<?>> annotations,
                            Boolean isAbstract)
Method Detail

findDeclaredProperty

public EdmProperty findDeclaredProperty(String name)
Finds a property by name on this structural type not including inherited properties.


findProperty

public EdmProperty findProperty(String name)
Finds a property by name, searching up the type hierarchy if necessary.


getBaseType

public EdmEntityType getBaseType()

getDeclaredProperties

public Enumerable<EdmProperty> getDeclaredProperties()
Gets the properties defined for this structural type not including inherited properties.


getIsAbstract

public Boolean getIsAbstract()

getName

public String getName()
Description copied from interface: Named
Gets the name.

Specified by:
getName in interface Named
Returns:
the name

getNamespace

public String getNamespace()

getProperties

public Enumerable<EdmProperty> getProperties()
Gets the properties defined for this structural type including inherited properties.


isRootType

public boolean isRootType()


http://odata4j.org