Class EdmTypeDefinitionImpl

All Implemented Interfaces:
org.apache.olingo.commons.api.edm.EdmAnnotatable, org.apache.olingo.commons.api.edm.EdmNamed, org.apache.olingo.commons.api.edm.EdmPrimitiveType, org.apache.olingo.commons.api.edm.EdmType, org.apache.olingo.commons.api.edm.EdmTypeDefinition

public class EdmTypeDefinitionImpl extends EdmTypeImpl implements org.apache.olingo.commons.api.edm.EdmTypeDefinition
  • Constructor Details

    • EdmTypeDefinitionImpl

      public EdmTypeDefinitionImpl(org.apache.olingo.commons.api.edm.Edm edm, org.apache.olingo.commons.api.edm.FullQualifiedName typeDefinitionName, org.apache.olingo.commons.api.edm.provider.CsdlTypeDefinition typeDefinition)
  • Method Details

    • getUnderlyingType

      public org.apache.olingo.commons.api.edm.EdmPrimitiveType getUnderlyingType()
      Specified by:
      getUnderlyingType in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • getMaxLength

      public Integer getMaxLength()
      Specified by:
      getMaxLength in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • getPrecision

      public Integer getPrecision()
      Specified by:
      getPrecision in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • getScale

      public Integer getScale()
      Specified by:
      getScale in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • getSrid

      public org.apache.olingo.commons.api.edm.geo.SRID getSrid()
      Specified by:
      getSrid in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • isUnicode

      public Boolean isUnicode()
      Specified by:
      isUnicode in interface org.apache.olingo.commons.api.edm.EdmTypeDefinition
    • isCompatible

      public boolean isCompatible(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType)
      Specified by:
      isCompatible in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
    • getDefaultType

      public Class<?> getDefaultType()
      Specified by:
      getDefaultType in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
    • validate

      public boolean validate(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode)
      Specified by:
      validate in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
    • valueOfString

      public <T> T valueOfString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
      Specified by:
      valueOfString in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
      Throws:
      org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
    • valueToString

      public String valueToString(Object value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
      Specified by:
      valueToString in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
      Throws:
      org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
    • toUriLiteral

      public String toUriLiteral(String literal)
      Specified by:
      toUriLiteral in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
    • fromUriLiteral

      public String fromUriLiteral(String literal) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
      Specified by:
      fromUriLiteral in interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
      Throws:
      org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException