org.apache.olingo.odata2.api.edm
Class EdmLiteral

java.lang.Object
  extended by org.apache.olingo.odata2.api.edm.EdmLiteral

public final class EdmLiteral
extends Object

See Also:
EdmLiteralKind

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

EdmLiteral

public EdmLiteral(EdmSimpleType type,
                  String literal)
Creates an EdmLiteral object out of the simple type and the literal string.

Parameters:
type - EdmSimpleType simple type
literal - String literal in default (not URI) representation
Method Detail

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.