org.apache.olingo.commons.api.edm.annotation

## Interface EdmCast

- All Superinterfaces:
    EdmAnnotatable, EdmDynamicExpression, EdmExpression

      public interface EdmCast
      extends EdmDynamicExpression, EdmAnnotatable

  Represents an edm:Cast expression. Casts the value obtained from its single child expression to the specified type

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression

      `EdmExpression.EdmExpressionType`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Integer` | `getMaxLength()` Returns the facet attribute MaxLength
    `Integer` | `getPrecision()` Returns the facet attribute Precision
    `Integer` | `getScale()` Returns the facet attribute Scale
    `SRID` | `getSrid()` Returns the facet attribute SRID
    `EdmType` | `getType()` Value cast to
    `EdmExpression` | `getValue()` Cast value of the expression

    - ### Methods inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmDynamicExpression

      `asAnd, asAnnotationPath, asApply, asCast, asCollection, asEq, asGe, asGt, asIf, asIsOf, asLabeledElement, asLabeledElementReference, asLe, asLt, asNavigationPropertyPath, asNe, asNot, asNull, asOr, asPath, asPropertyPath, asPropertyValue, asRecord, asUrlRef, isAnd, isAnnotationPath, isApply, isCast, isCollection, isEq, isGe, isGt, isIf, isIsOf, isLabeledElement, isLabeledElementReference, isLe, isLt, isNavigationPropertyPath, isNe, isNot, isNull, isOr, isPath, isPropertyPath, isPropertyValue, isRecord, isUrlRef`

    - ### Methods inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression

      `asConstant, asDynamic, getExpressionName, getExpressionType, isConstant, isDynamic`

    - ### Methods inherited from interface org.apache.olingo.commons.api.edm.EdmAnnotatable

      `getAnnotation, getAnnotations`

- - ### Method Detail

    - #### getMaxLength

          Integer getMaxLength()

      Returns the facet attribute MaxLength
      Returns:
        Returns the facet attribute MaxLength

    - #### getPrecision

          Integer getPrecision()

      Returns the facet attribute Precision
      Returns:
        Returns the facet attribute Precision

    - #### getScale

          Integer getScale()

      Returns the facet attribute Scale
      Returns:
        Returns the facet attribute Scale

    - #### getSrid

          SRID getSrid()

      Returns the facet attribute SRID
      Returns:
        Returns the facet attribute SRID

    - #### getType

          EdmType getType()

      Value cast to
      Returns:
        value cast to

    - #### getValue

          EdmExpression getValue()

      Cast value of the expression
      Returns:
        Cast value

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.