Class EdmLiteral

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

public final class EdmLiteral extends Object
See Also:
  • Constructor Details

    • 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 Details

    • 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