Class EdmGuid
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
Implementation of the EDM primitive type Guid.
-
Field Summary
FieldsFields inherited from class org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType
name
Fields inherited from interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
EDM_NAMESPACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromUriLiteral
(String literal) Class<?>
org.apache.olingo.commons.api.edm.FullQualifiedName
static EdmGuid
protected <T> T
internalValueOfString
(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) protected <T> String
internalValueToString
(T value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) boolean
isCompatible
(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType) toString()
toUriLiteral
(String literal) boolean
validate
(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) final <T> T
valueOfString
(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) final String
valueToString
(Object value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) Methods inherited from class org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType
equals, getKind, getName, getNamespace, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
validateDecimals
-
Field Details
-
uriPrefix
-
uriSuffix
-
-
Constructor Details
-
EdmGuid
public EdmGuid()
-
-
Method Details
-
getInstance
-
getDefaultType
-
validate
public boolean validate(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) - Specified by:
validate
in interfaceorg.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 interfaceorg.apache.olingo.commons.api.edm.EdmType
-
isCompatible
public boolean isCompatible(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType) - Specified by:
isCompatible
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.olingo.commons.api.edm.EdmPrimitiveType
- Throws:
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
-
toUriLiteral
- Specified by:
toUriLiteral
in interfaceorg.apache.olingo.commons.api.edm.EdmPrimitiveType
-
fromUriLiteral
public String fromUriLiteral(String literal) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException - Specified by:
fromUriLiteral
in interfaceorg.apache.olingo.commons.api.edm.EdmPrimitiveType
- Throws:
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
-
toString
-