org.odata4j.edm
Class EdmType

java.lang.Object
  extended by org.odata4j.edm.EdmItem
      extended by org.odata4j.edm.EdmType
Direct Known Subclasses:
EdmNonSimpleType, EdmSimpleType

public abstract class EdmType
extends EdmItem

A type in the EDM type system.

See Also:
[msdn] Types (Metadata)

Nested Class Summary
static class EdmType.Builder<T,TBuilder>
          Mutable builder for EdmType objects.
static class EdmType.DeferredBuilder<T,TBuilder>
          Mutable builder for EdmType objects with deferred resolution.
 
Constructor Summary
protected EdmType(String fullyQualifiedTypeName)
           
protected EdmType(String fullyQualifiedTypeName, EdmDocumentation documentation, ImmutableList<EdmAnnotation<?>> annotations)
           
 
Method Summary
 boolean equals(Object other)
           
 String getFullyQualifiedTypeName()
          Gets the fully-qualified type name for this edm-type.
static Class<? extends OObject> getInstanceType(EdmType edmType)
          Gets the corresponding instance type of a given edm type.
static EdmSimpleType<?> getSimple(String fullyQualifiedTypeName)
          Gets an edm-type for a given type name.
 int hashCode()
           
abstract  boolean isSimple()
           
static EdmType.DeferredBuilder<?,?> newDeferredBuilder(String fqTypeName, EdmDataServices.Builder dataServices)
           
 String 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

EdmType

protected EdmType(String fullyQualifiedTypeName)

EdmType

protected EdmType(String fullyQualifiedTypeName,
                  EdmDocumentation documentation,
                  ImmutableList<EdmAnnotation<?>> annotations)
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getFullyQualifiedTypeName

public String getFullyQualifiedTypeName()
Gets the fully-qualified type name for this edm-type.


getInstanceType

public static Class<? extends OObject> getInstanceType(EdmType edmType)
Gets the corresponding instance type of a given edm type. e.g. OEntity for EdmEntityType


getSimple

public static EdmSimpleType<?> getSimple(String fullyQualifiedTypeName)
Gets an edm-type for a given type name.

Parameters:
fullyQualifiedTypeName - the fully-qualified type name
Returns:
the edm-type

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isSimple

public abstract boolean isSimple()

newDeferredBuilder

public static EdmType.DeferredBuilder<?,?> newDeferredBuilder(String fqTypeName,
                                                              EdmDataServices.Builder dataServices)

toString

public String toString()
Overrides:
toString in class Object


http://odata4j.org