public class TypedOperand extends VisitorOperand
oData, primBoolean, primByte, primDate, primDateTimeOffset, primDecimal, primDouble, primDuration, primInt16, primInt32, primInt64, primSByte, primSingle, primString, primTimeOfDay, value
Constructor and Description |
---|
TypedOperand(Object value,
EdmType type) |
TypedOperand(Object value,
EdmType type,
EdmProperty edmProperty) |
Modifier and Type | Method and Description |
---|---|
TypedOperand |
asTypedOperand() |
TypedOperand |
asTypedOperand(EdmPrimitiveType... asTypes) |
TypedOperand |
castToCommonType(VisitorOperand otherOperand) |
EdmProperty |
getEdmProperty() |
EdmType |
getType() |
<T> T |
getTypedValue(Class<T> clazz) |
boolean |
is(EdmPrimitiveType... types) |
boolean |
isDecimalType() |
boolean |
isIntegerType() |
boolean |
isNull() |
boolean |
isNullLiteral() |
castTo, getDefaultType, getValue, tryCast
public TypedOperand(Object value, EdmType type, EdmProperty edmProperty)
public TypedOperand asTypedOperand() throws ODataApplicationException
asTypedOperand
in class VisitorOperand
ODataApplicationException
public TypedOperand asTypedOperand(EdmPrimitiveType... asTypes) throws ODataApplicationException
asTypedOperand
in class VisitorOperand
ODataApplicationException
public TypedOperand castToCommonType(VisitorOperand otherOperand) throws ODataApplicationException
ODataApplicationException
public EdmType getType()
public <T> T getTypedValue(Class<T> clazz)
public boolean isNullLiteral()
public boolean isNull()
public boolean isIntegerType()
public boolean isDecimalType()
public boolean is(EdmPrimitiveType... types)
public EdmProperty getEdmProperty()
getEdmProperty
in class VisitorOperand
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.