|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EdmSimpleTypeKind>
org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind
public enum EdmSimpleTypeKind
| Enum Constant Summary | |
|---|---|
Binary
|
|
Boolean
|
|
Byte
|
|
DateTime
|
|
DateTimeOffset
|
|
Decimal
|
|
Double
|
|
Guid
|
|
Int16
|
|
Int32
|
|
Int64
|
|
Null
|
|
SByte
|
|
Single
|
|
String
|
|
Time
|
|
| Method Summary | |
|---|---|
EdmSimpleType |
getEdmSimpleTypeInstance()
Returns an instance for this EdmSimpleTypeKind in the form of EdmSimpleType. |
FullQualifiedName |
getFullQualifiedName()
Returns the FullQualifiedName for this SimpleTypeKind. |
static EdmLiteral |
parseUriLiteral(String uriLiteral)
Parses a URI literal and determines its EDM simple type on the way. |
static EdmSimpleTypeKind |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EdmSimpleTypeKind[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EdmSimpleTypeKind Binary
public static final EdmSimpleTypeKind Boolean
public static final EdmSimpleTypeKind Byte
public static final EdmSimpleTypeKind DateTime
public static final EdmSimpleTypeKind DateTimeOffset
public static final EdmSimpleTypeKind Decimal
public static final EdmSimpleTypeKind Double
public static final EdmSimpleTypeKind Guid
public static final EdmSimpleTypeKind Int16
public static final EdmSimpleTypeKind Int32
public static final EdmSimpleTypeKind Int64
public static final EdmSimpleTypeKind SByte
public static final EdmSimpleTypeKind Single
public static final EdmSimpleTypeKind String
public static final EdmSimpleTypeKind Time
public static final EdmSimpleTypeKind Null
| Method Detail |
|---|
public static EdmSimpleTypeKind[] values()
for (EdmSimpleTypeKind c : EdmSimpleTypeKind.values()) System.out.println(c);
public static EdmSimpleTypeKind valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic FullQualifiedName getFullQualifiedName()
FullQualifiedName for this SimpleTypeKind.
FullQualifiedNamepublic EdmSimpleType getEdmSimpleTypeInstance()
EdmSimpleTypeKind in the form of EdmSimpleType.
EdmSimpleType instance
public static EdmLiteral parseUriLiteral(String uriLiteral)
throws EdmLiteralException
Parses a URI literal and determines its EDM simple type on the way.
If the literal is null or consists of the literal string
"null", the EDM simple type Null is returned.
The URI literal syntax of EDM simple types allows two ways of determining the type:
Int16 or Int32 but all possible
values of Int16 are also legal values of Int32
so callers could promote it to Int32 in all cases where they
deem it necessary.There are two cases where it is not possible to choose unambiguously a compatible type:
0 or 1 could be a number but also a boolean value;
therefore, the internal (system) type Bit is used for these values.0 and 127 (inclusive) could
be of type SByte or Byte both of which are not compatible
to the other; therefore, the internal (system) type Uint7 is used
for these values.
uriLiteral - the literal
EdmLiteral, containing the literal
in default String representation and the EDM simple type
EdmLiteralException - if the literal is malformed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||