public abstract class

EdmType

extends EdmItem
java.lang.Object
   ↳ org.odata4j.edm.EdmItem
     ↳ org.odata4j.edm.EdmType
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A type in the EDM type system.

Summary

Nested Classes
class EdmType.Builder<T, TBuilder> Mutable builder for EdmType objects. 
class EdmType.DeferredBuilder<T, TBuilder> Mutable builder for EdmType objects with deferred resolution. 
Fields
private final String fullyQualifiedTypeName
[Expand]
Inherited Fields
From class org.odata4j.edm.EdmItem
Protected Constructors
EdmType(String fullyQualifiedTypeName)
EdmType(String fullyQualifiedTypeName, EdmDocumentation documentation, ImmutableList<EdmAnnotation<?>> annotations)
Public Methods
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 DeferredBuilder<?, ?> newDeferredBuilder(String fqTypeName, EdmDataServices.Builder dataServices)
String toString()
[Expand]
Inherited Methods
From class org.odata4j.edm.EdmItem
From class java.lang.Object

Fields

private final String fullyQualifiedTypeName

Protected Constructors

protected EdmType (String fullyQualifiedTypeName)

Parameters
fullyQualifiedTypeName

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

Parameters
fullyQualifiedTypeName
documentation
annotations

Public Methods

public boolean equals (Object other)

Parameters
other

public String getFullyQualifiedTypeName ()

Gets the fully-qualified type name for this edm-type.

public static Class<? extends OObject> getInstanceType (EdmType edmType)

Gets the corresponding instance type of a given edm type. e.g. OEntity for EdmEntityType

Parameters
edmType

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

public int hashCode ()

public abstract boolean isSimple ()

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

Parameters
fqTypeName
dataServices

public String toString ()