org.apache.olingo.odata2.api.edm
Class EdmLiteral
java.lang.Object
org.apache.olingo.odata2.api.edm.EdmLiteral
public final class EdmLiteral
- extends Object
- See Also:
EdmLiteralKind
EdmLiteral
public EdmLiteral(EdmSimpleType type,
String literal)
- Creates an
EdmLiteral object out of the simple type and the literal string.
- Parameters:
type - EdmSimpleType simple typeliteral - String literal in default (not URI) representation
getType
public EdmSimpleType getType()
- Gets the simple type of the literal.
- Returns:
EdmSimpleType object
getLiteral
public String getLiteral()
- Gets the literal String.
- Returns:
String literal in default (not URI) representation
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.