Class CsdlCast
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.annotation.CsdlExpression
org.apache.olingo.commons.api.edm.provider.annotation.CsdlDynamicExpression
org.apache.olingo.commons.api.edm.provider.annotation.CsdlCast
- All Implemented Interfaces:
CsdlAnnotatable
Represents an edm:Cast expression.
Casts the value obtained from its single child expression to the specified type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a list of annotationsReturns the facet attribute MaxLengthReturns the facet attribute PrecisiongetScale()
Returns the facet attribute ScalegetSrid()
Returns the facet attribute SRIDgetType()
Value cast togetValue()
Cast value of the expressionint
hashCode()
setAnnotations
(List<CsdlAnnotation> annotations) setMaxLength
(Integer maxLength) setPrecision
(Integer precision) setValue
(CsdlExpression value) Methods inherited from class org.apache.olingo.commons.api.edm.provider.annotation.CsdlDynamicExpression
asAnnotationPath, asApply, asCast, asCollection, asIf, asIsOf, asLabeledElement, asLabeledElementReference, asLogicalOrComparison, asNavigationPropertyPath, asNull, asPath, asPropertyPath, asRecord, asUrlRef, isAnnotationPath, isApply, isCast, isCollection, isIf, isIsOf, isLabeledElement, isLabeledElementReference, isLogicalOrComparison, isNavigationPropertyPath, isNull, isPath, isPropertyPath, isRecord, isUrlRef
Methods inherited from class org.apache.olingo.commons.api.edm.provider.annotation.CsdlExpression
asConstant, asDynamic, isConstant, isDynamic
Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlCast
public CsdlCast()
-
-
Method Details
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
-
getType
Value cast to- Returns:
- value cast to
-
setType
-
getMaxLength
Returns the facet attribute MaxLength- Returns:
- Returns the facet attribute MaxLength
-
setMaxLength
-
getPrecision
Returns the facet attribute Precision- Returns:
- Returns the facet attribute Precision
-
setPrecision
-
getScale
Returns the facet attribute Scale- Returns:
- Returns the facet attribute Scale
-
setScale
-
getSrid
Returns the facet attribute SRID- Returns:
- Returns the facet attribute SRID
-
setSrid
-
getValue
Cast value of the expression- Returns:
- Cast value
-
setValue
-
equals
-
hashCode
public int hashCode()
-