public enum EdmSimpleTypeKind extends Enum<EdmSimpleTypeKind>
Enum Constant and Description |
---|
Binary |
Boolean |
Byte |
DateTime |
DateTimeOffset |
Decimal |
Double |
Guid |
Int16 |
Int32 |
Int64 |
Null |
SByte |
Single |
String |
Time |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic FullQualifiedName getFullQualifiedName()
FullQualifiedName
for this SimpleTypeKind.FullQualifiedName
public EdmSimpleType getEdmSimpleTypeInstance()
EdmSimpleTypeKind
in the form of EdmSimpleType
.EdmSimpleType
instancepublic 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 literalEdmLiteral
, containing the literal
in default String representation and the EDM simple typeEdmLiteralException
- if the literal is malformedCopyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.