Interface ClientPrimitiveValue

All Superinterfaces:
ClientValue

public interface ClientPrimitiveValue extends ClientValue
  • Method Details

    • getTypeKind

      EdmPrimitiveTypeKind getTypeKind()
    • getType

      EdmPrimitiveType getType()
    • toValue

      Object toValue()
      Returns the current value as generic Object.
      Returns:
      an uncasted instance of this value
    • toCastValue

      <T> T toCastValue(Class<T> reference) throws EdmPrimitiveTypeException
      Returns the current value casted to the given type.
      Type Parameters:
      T - cast type
      Parameters:
      reference - class reference
      Returns:
      the current value as typed java instance
      Throws:
      EdmPrimitiveTypeException - if the object is not assignable to the type T.
    • toString

      String toString()
      Serialize the current value as String.
      Overrides:
      toString in class Object
      Returns:
      a String representation of this value