java.lang.Object
org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType
org.apache.olingo.commons.core.edm.primitivetype.EdmGuid
All Implemented Interfaces:
org.apache.olingo.commons.api.edm.EdmNamed, org.apache.olingo.commons.api.edm.EdmPrimitiveType, org.apache.olingo.commons.api.edm.EdmType

public final class EdmGuid extends SingletonPrimitiveType
Implementation of the EDM primitive type Guid.
  • Field Details

    • uriPrefix

      protected String uriPrefix
    • uriSuffix

      protected String uriSuffix
  • Constructor Details

    • EdmGuid

      public EdmGuid()
  • Method Details

    • getInstance

      public static EdmGuid getInstance()
    • getDefaultType

      public Class<?> getDefaultType()
    • 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
    • internalValueOfString

      protected <T> T internalValueOfString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
      Throws:
      org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
    • internalValueToString

      protected <T> String internalValueToString(T value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
      Throws:
      org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
    • getFullQualifiedName

      public org.apache.olingo.commons.api.edm.FullQualifiedName getFullQualifiedName()
      Specified by:
      getFullQualifiedName in interface org.apache.olingo.commons.api.edm.EdmType
    • isCompatible

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

      public final <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 final 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
    • toString

      public String toString()
      Overrides:
      toString in class Object