|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.olingo.odata2.api.edm.EdmLiteral
public final class EdmLiteral
EdmLiteralKind
Representation of a simple-typed literal
The literal is in default representation. The URI representation differs
from the default representation mainly in the additional presence of type
indicators (prefixes or suffixes, respectively); since the type information
is stored here separately, the default representation is more appropriate.
Should the URI representation be needed, it can be re-created by calling EdmSimpleType.toUriLiteral(java.lang.String)
.
Constructor Summary | |
---|---|
EdmLiteral(EdmSimpleType type,
String literal)
Creates an EdmLiteral object out of the simple type and the literal string. |
Method Summary | |
---|---|
String |
getLiteral()
Gets the literal String. |
EdmSimpleType |
getType()
Gets the simple type of the literal. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EdmLiteral(EdmSimpleType type, String literal)
EdmLiteral
object out of the simple type and the literal string.
type
- EdmSimpleType
simple typeliteral
- String literal in default (not URI) representationMethod Detail |
---|
public EdmSimpleType getType()
EdmSimpleType
objectpublic String getLiteral()
String
literal in default (not URI) representationpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |