Class EdmBoolean
- java.lang.Object
-
- org.apache.olingo.odata2.core.edm.AbstractSimpleType
-
- org.apache.olingo.odata2.core.edm.EdmBoolean
-
- All Implemented Interfaces:
EdmNamed,EdmSimpleType,EdmType
public class EdmBoolean extends AbstractSimpleType
Implementation of the EDM simple type Boolean.
-
-
Field Summary
-
Fields inherited from interface org.apache.olingo.odata2.api.edm.EdmSimpleType
EDM_NAMESPACE, SYSTEM_NAMESPACE
-
-
Constructor Summary
Constructors Constructor Description EdmBoolean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getDefaultType()static EdmBooleangetInstance()protected <T> TinternalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType)protected <T> StringinternalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets)booleanisCompatible(EdmSimpleType simpleType)booleanvalidate(String value, EdmLiteralKind literalKind, EdmFacets facets)-
Methods inherited from class org.apache.olingo.odata2.core.edm.AbstractSimpleType
equals, getKind, getName, getNamespace, hashCode, toString, toUriLiteral, valueOfString, valueOfString, valueToObjectKeyString, valueToString
-
-
-
-
Method Detail
-
getInstance
public static EdmBoolean getInstance()
-
isCompatible
public boolean isCompatible(EdmSimpleType simpleType)
- Specified by:
isCompatiblein interfaceEdmSimpleType- Overrides:
isCompatiblein classAbstractSimpleType
-
getDefaultType
public Class<?> getDefaultType()
-
validate
public boolean validate(String value, EdmLiteralKind literalKind, EdmFacets facets)
- Specified by:
validatein interfaceEdmSimpleType- Overrides:
validatein classAbstractSimpleType
-
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
-
-