org.odata4j.edm
Class EdmType

java.lang.Object
  extended by org.odata4j.edm.EdmType

public class EdmType
extends Object

A type in the EDM type system. Simple types are exposed as constants and associated with one or more java-types.

See Also:
[msdn] Simple Types (EDM)

Field Summary
static EdmType BINARY
           
static EdmType BOOLEAN
           
static EdmType BYTE
           
static EdmType DATETIME
           
static EdmType DATETIMEOFFSET
           
static EdmType DECIMAL
           
static EdmType DOUBLE
           
static EdmType GUID
           
static EdmType INT16
           
static EdmType INT32
           
static EdmType INT64
           
static Set<EdmType> SIMPLE
          Set of all edm simple types.
static EdmType SINGLE
           
static EdmType STRING
           
static EdmType TIME
           
 
Method Summary
 boolean equals(Object other)
           
static EdmType forJavaType(Class<?> javaType)
          Finds the edm simple type for a given java-type.
static EdmType get(String typeString)
          Gets the edm-type for a given type name.
 Set<Class<?>> getJavaTypes()
          Gets the java-types associated with this edm-type.
 int hashCode()
           
 boolean isSimple()
          Whether or not this is an edm simple type.
 String toString()
           
 String toTypeString()
          Gets the fully-qualified type name for this edm-type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BINARY

public static final EdmType BINARY

BOOLEAN

public static final EdmType BOOLEAN

BYTE

public static final EdmType BYTE

DATETIME

public static final EdmType DATETIME

DATETIMEOFFSET

public static final EdmType DATETIMEOFFSET

DECIMAL

public static final EdmType DECIMAL

DOUBLE

public static final EdmType DOUBLE

GUID

public static final EdmType GUID

INT16

public static final EdmType INT16

INT32

public static final EdmType INT32

INT64

public static final EdmType INT64

SIMPLE

public static Set<EdmType> SIMPLE
Set of all edm simple types.


SINGLE

public static final EdmType SINGLE

STRING

public static final EdmType STRING

TIME

public static final EdmType TIME
Method Detail

equals

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

forJavaType

public static EdmType forJavaType(Class<?> javaType)
Finds the edm simple type for a given java-type.

Parameters:
javaType - the java-type
Returns:
the associated edm simple type, else null

get

public static EdmType get(String typeString)
Gets the edm-type for a given type name.

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

getJavaTypes

public Set<Class<?>> getJavaTypes()
Gets the java-types associated with this edm-type. Only valid for simple types.

Returns:
the associated java-types.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isSimple

public boolean isSimple()
Whether or not this is an edm simple type.

Returns:
true or false

toString

public String toString()
Overrides:
toString in class Object

toTypeString

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

Returns:
the fully-qualified type name


http://odata4j.org