public class EdmBoolean extends AbstractSimpleType
EDM_NAMESPACE, SYSTEM_NAMESPACE| Constructor and Description |
|---|
EdmBoolean() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDefaultType()
Returns the default Java type for this EDM simple type as described in
the documentation of
EdmSimpleType. |
static EdmBoolean |
getInstance() |
protected <T> T |
internalValueOfString(String value,
EdmLiteralKind literalKind,
EdmFacets facets,
Class<T> returnType) |
protected <T> String |
internalValueToString(T value,
EdmLiteralKind literalKind,
EdmFacets facets) |
boolean |
isCompatible(EdmSimpleType simpleType)
Checks type compatibility.
|
boolean |
validate(String value,
EdmLiteralKind literalKind,
EdmFacets facets)
Validates literal value.
|
equals, getKind, getName, getNamespace, hashCode, toString, toUriLiteral, valueOfString, valueToStringpublic static EdmBoolean getInstance()
public boolean isCompatible(EdmSimpleType simpleType)
EdmSimpleTypeisCompatible in interface EdmSimpleTypeisCompatible in class AbstractSimpleTypesimpleType - the EdmSimpleType to be tested for compatibilitytrue if the provided type is compatible to this typepublic Class<?> getDefaultType()
EdmSimpleTypeEdmSimpleType.public boolean validate(String value, EdmLiteralKind literalKind, EdmFacets facets)
EdmSimpleTypevalidate in interface EdmSimpleTypevalidate in class AbstractSimpleTypevalue - the literal valueliteralKind - the kind of literal representation of valuefacets - additional constraints for parsing (optional)true if the validation is successfulEdmLiteralKind,
EdmFacetsprotected <T> T internalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) throws EdmSimpleTypeException
internalValueOfString in class AbstractSimpleTypeEdmSimpleTypeExceptionprotected <T> String internalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) throws EdmSimpleTypeException
internalValueToString in class AbstractSimpleTypeEdmSimpleTypeExceptionCopyright © 2020. All rights reserved.