Class EdmTypeDefinitionImpl
java.lang.Object
org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
org.apache.olingo.commons.core.edm.AbstractEdmNamed
org.apache.olingo.commons.core.edm.EdmTypeImpl
org.apache.olingo.commons.core.edm.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
-
Field Summary
Fields inherited from class org.apache.olingo.commons.core.edm.EdmTypeImpl
kind, typeName
Fields inherited from class org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
edm
Fields inherited from interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
EDM_NAMESPACE
-
Constructor Summary
ConstructorsConstructorDescriptionEdmTypeDefinitionImpl
(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 Summary
Modifier and TypeMethodDescriptionfromUriLiteral
(String literal) Class<?>
getScale()
org.apache.olingo.commons.api.edm.geo.SRID
getSrid()
org.apache.olingo.commons.api.edm.EdmPrimitiveType
boolean
isCompatible
(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType) toUriLiteral
(String literal) boolean
validate
(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) <T> T
valueOfString
(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) valueToString
(Object value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) Methods inherited from class org.apache.olingo.commons.core.edm.EdmTypeImpl
getFullQualifiedName, getKind, getNamespace
Methods inherited from class org.apache.olingo.commons.core.edm.AbstractEdmNamed
getName, toString
Methods inherited from class org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
getAnnotation, getAnnotations
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmAnnotatable
getAnnotation, getAnnotations
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmNamed
getName
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmPrimitiveType
validateDecimals
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmType
getFullQualifiedName, getKind, getNamespace
-
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 interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
getMaxLength
- Specified by:
getMaxLength
in interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
getPrecision
- Specified by:
getPrecision
in interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
getScale
- Specified by:
getScale
in interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
getSrid
public org.apache.olingo.commons.api.edm.geo.SRID getSrid()- Specified by:
getSrid
in interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
isUnicode
- Specified by:
isUnicode
in interfaceorg.apache.olingo.commons.api.edm.EdmTypeDefinition
-
isCompatible
public boolean isCompatible(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType) - Specified by:
isCompatible
in interfaceorg.apache.olingo.commons.api.edm.EdmPrimitiveType
-
getDefaultType
- Specified by:
getDefaultType
in interfaceorg.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 interfaceorg.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 interfaceorg.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 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
-