Module dev.metaschema.databind
Class NullJavaTypeAdapter
java.lang.Object
dev.metaschema.core.datatype.AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
dev.metaschema.databind.model.annotations.NullJavaTypeAdapter
- All Implemented Interfaces:
IDataTypeAdapter<Void>
public final class NullJavaTypeAdapter
extends AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
Used to mark a Java type that has no configured adapter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA placeholder atomic item type that throws unsupported operation exceptions for all operations. -
Field Summary
Fields inherited from class dev.metaschema.core.datatype.AbstractDataTypeAdapter
DEFAULT_JSON_FIELD_VALUE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a copy of the provided value.com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypesThe JSON primative type of the data type.getNames()Get the metaschema type names associated with this adapter.Construct a new item of this type using the provided value.Parses a provided string.Methods inherited from class dev.metaschema.core.datatype.AbstractDataTypeAdapter
asString, canHandleQName, getDefaultJsonValueKey, getItemType, getJavaClass, isUnrappedValueAllowedInXml, isXmlMixed, parse, parse, toValue, writeJsonValue, writeXmlValue, writeXmlValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.datatype.IDataTypeAdapter
getPreferredName, isAtomic
-
Constructor Details
-
NullJavaTypeAdapter
public NullJavaTypeAdapter()Construct a new adapter.
-
-
Method Details
-
getJsonRawType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getJsonRawType()Description copied from interface:IDataTypeAdapterThe JSON primative type of the data type.- Returns:
- the JSON data type
-
copy
Description copied from interface:IDataTypeAdapterCreate a copy of the provided value.- Parameters:
obj- the value to copy- Returns:
- the copy
-
parse
Description copied from interface:IDataTypeAdapterParses a provided string. Used to parse XML attributes, simple XML character data, and JSON/YAML property values.- Parameters:
value- the string value to parse- Returns:
- the parsed data as the adapter's type
-
newItem
Description copied from interface:IDataTypeAdapterConstruct a new item of this type using the provided value.- Specified by:
newItemin interfaceIDataTypeAdapter<Void>- Specified by:
newItemin classAbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem> - Parameters:
value- the item's value- Returns:
- a new item
-
getNames
Description copied from interface:IDataTypeAdapterGet the metaschema type names associated with this adapter. This name must be unique with respect to all other metaschema types.At least one name must be provided, with the first name being the most preferred name.
- Returns:
- the name
-