org.odata4j.edm
Class EdmSimpleType<V>

java.lang.Object
  extended by org.odata4j.edm.EdmItem
      extended by org.odata4j.edm.EdmType
          extended by org.odata4j.edm.EdmSimpleType<V>

public class EdmSimpleType<V>
extends EdmType

Primitive types 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)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.odata4j.edm.EdmType
EdmType.DeferredBuilder<T,TBuilder>
 
Field Summary
static Set<EdmSimpleType<?>> ALL
          Immutable set of all edm simple types.
static EdmSimpleType<byte[]> BINARY
           
static EdmSimpleType<Boolean> BOOLEAN
           
static EdmSimpleType<UnsignedByte> BYTE
           
static EdmSimpleType<LocalDateTime> DATETIME
           
static EdmSimpleType<DateTime> DATETIMEOFFSET
           
static EdmSimpleType<BigDecimal> DECIMAL
           
static EdmSimpleType<Double> DOUBLE
           
static EdmSimpleType<Guid> GUID
           
static EdmSimpleType<Short> INT16
           
static EdmSimpleType<Integer> INT32
           
static EdmSimpleType<Long> INT64
           
static EdmSimpleType<Byte> SBYTE
           
static EdmSimpleType<Float> SINGLE
           
static EdmSimpleType<String> STRING
           
static EdmSimpleType<LocalTime> TIME
           
 
Method Summary
static
<V> EdmSimpleType<V>
forJavaType(Class<?> javaType)
          Finds the edm simple type for a given java-type.
 Class<V> getCanonicalJavaType()
           
 Set<Class<?>> getJavaTypes()
          Gets all java-types associated with this edm-type.
 boolean isSimple()
           
static EdmType.Builder<?,?> newBuilder(EdmType type)
           
 
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
 

Field Detail

ALL

public static final Set<EdmSimpleType<?>> ALL
Immutable set of all edm simple types.


BINARY

public static final EdmSimpleType<byte[]> BINARY

BOOLEAN

public static final EdmSimpleType<Boolean> BOOLEAN

BYTE

public static final EdmSimpleType<UnsignedByte> BYTE

DATETIME

public static final EdmSimpleType<LocalDateTime> DATETIME

DATETIMEOFFSET

public static final EdmSimpleType<DateTime> DATETIMEOFFSET

DECIMAL

public static final EdmSimpleType<BigDecimal> DECIMAL

DOUBLE

public static final EdmSimpleType<Double> DOUBLE

GUID

public static final EdmSimpleType<Guid> GUID

INT16

public static final EdmSimpleType<Short> INT16

INT32

public static final EdmSimpleType<Integer> INT32

INT64

public static final EdmSimpleType<Long> INT64

SBYTE

public static final EdmSimpleType<Byte> SBYTE

SINGLE

public static final EdmSimpleType<Float> SINGLE

STRING

public static final EdmSimpleType<String> STRING

TIME

public static final EdmSimpleType<LocalTime> TIME
Method Detail

forJavaType

public static <V> EdmSimpleType<V> 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

getCanonicalJavaType

public Class<V> getCanonicalJavaType()

getJavaTypes

public Set<Class<?>> getJavaTypes()
Gets all java-types associated with this edm-type.

Returns:
the associated java-types.

isSimple

public boolean isSimple()
Specified by:
isSimple in class EdmType

newBuilder

public static EdmType.Builder<?,?> newBuilder(EdmType type)


http://odata4j.org