All Implemented Interfaces:
CsdlAnnotatable

public class CsdlCast extends CsdlDynamicExpression implements CsdlAnnotatable
Represents an edm:Cast expression. Casts the value obtained from its single child expression to the specified type
  • Constructor Details

    • CsdlCast

      public CsdlCast()
  • Method Details

    • getAnnotations

      public List<CsdlAnnotation> getAnnotations()
      Description copied from interface: CsdlAnnotatable
      Returns a list of annotations
      Specified by:
      getAnnotations in interface CsdlAnnotatable
      Returns:
      list of annotations
    • setAnnotations

      public CsdlCast setAnnotations(List<CsdlAnnotation> annotations)
    • getType

      public String getType()
      Value cast to
      Returns:
      value cast to
    • setType

      public CsdlCast setType(String type)
    • getMaxLength

      public Integer getMaxLength()
      Returns the facet attribute MaxLength
      Returns:
      Returns the facet attribute MaxLength
    • setMaxLength

      public CsdlCast setMaxLength(Integer maxLength)
    • getPrecision

      public Integer getPrecision()
      Returns the facet attribute Precision
      Returns:
      Returns the facet attribute Precision
    • setPrecision

      public CsdlCast setPrecision(Integer precision)
    • getScale

      public Integer getScale()
      Returns the facet attribute Scale
      Returns:
      Returns the facet attribute Scale
    • setScale

      public CsdlCast setScale(Integer scale)
    • getSrid

      public SRID getSrid()
      Returns the facet attribute SRID
      Returns:
      Returns the facet attribute SRID
    • setSrid

      public CsdlCast setSrid(SRID srid)
    • getValue

      public CsdlExpression getValue()
      Cast value of the expression
      Returns:
      Cast value
    • setValue

      public CsdlCast setValue(CsdlExpression value)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object