Class EdmInt32
java.lang.Object
org.apache.olingo.odata2.core.edm.AbstractSimpleType
org.apache.olingo.odata2.core.edm.EdmInt32
- All Implemented Interfaces:
EdmNamed,EdmSimpleType,EdmType
Implementation of the EDM simple type Int32.
-
Field Summary
Fields inherited from interface org.apache.olingo.odata2.api.edm.EdmSimpleType
EDM_NAMESPACE, SYSTEM_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the default Java type for this EDM simple type as described in the documentation ofEdmSimpleType.static EdmInt32protected <T> TinternalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) protected <T> StringinternalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) booleanisCompatible(EdmSimpleType simpleType) Checks type compatibility.Methods inherited from class org.apache.olingo.odata2.core.edm.AbstractSimpleType
equals, getKind, getName, getNamespace, hashCode, toString, toUriLiteral, validate, valueOfString, valueToString
-
Constructor Details
-
EdmInt32
public EdmInt32()
-
-
Method Details
-
getInstance
-
isCompatible
Description copied from interface:EdmSimpleTypeChecks type compatibility.- Specified by:
isCompatiblein interfaceEdmSimpleType- Overrides:
isCompatiblein classAbstractSimpleType- Parameters:
simpleType- theEdmSimpleTypeto be tested for compatibility- Returns:
trueif the provided type is compatible to this type
-
getDefaultType
Description copied from interface:EdmSimpleTypeReturns the default Java type for this EDM simple type as described in the documentation ofEdmSimpleType.- Returns:
- the default Java type
-
internalValueOfString
protected <T> T internalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) throws EdmSimpleTypeException - Specified by:
internalValueOfStringin classAbstractSimpleType- Throws:
EdmSimpleTypeException
-
internalValueToString
protected <T> String internalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) throws EdmSimpleTypeException - Specified by:
internalValueToStringin classAbstractSimpleType- Throws:
EdmSimpleTypeException
-