Class AbstractCustomJavaDataTypeAdapter<TYPE extends ICustomJavaDataType<TYPE>,ITEM_TYPE extends IAnyAtomicItem>
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter<TYPE,ITEM_TYPE>
-
- gov.nist.secauto.metaschema.core.datatype.AbstractCustomJavaDataTypeAdapter<TYPE,ITEM_TYPE>
-
- Type Parameters:
TYPE
- the Java type this adapter supports, which is based onICustomJavaDataType
ITEM_TYPE
- the Metapath item type associated with the adapter
- All Implemented Interfaces:
IDataTypeAdapter<TYPE>
- Direct Known Subclasses:
AbstractMarkupAdapter
,DateAdapter
,DateTimeAdapter
public abstract class AbstractCustomJavaDataTypeAdapter<TYPE extends ICustomJavaDataType<TYPE>,ITEM_TYPE extends IAnyAtomicItem> extends AbstractDataTypeAdapter<TYPE,ITEM_TYPE>
Provides a Java type adapter implementation for data types that are based onICustomJavaDataType
.
-
-
Field Summary
-
Fields inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter
DEFAULT_JSON_FIELD_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractCustomJavaDataTypeAdapter(Class<TYPE> clazz)
Construct a new Java type adapter for the class based onICustomJavaDataType
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TYPE
copy(Object obj)
Create a copy of the provided value.-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter
asString, canHandleQName, cast, castInternal, getDefaultJsonValueKey, getItemClass, getJavaClass, isParsingStartElement, isUnrappedValueAllowedInXml, isXmlMixed, newItem, parse, parse, toValue, writeJsonValue, writeXmlValue, writeXmlValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.datatype.IDataTypeAdapter
getJsonRawType, getNames, getPreferredName, isAtomic, parse, parseAndSupply, parseAndSupply, parseAndSupply
-
-
-
-
Constructor Detail
-
AbstractCustomJavaDataTypeAdapter
public AbstractCustomJavaDataTypeAdapter(@NonNull Class<TYPE> clazz)
Construct a new Java type adapter for the class based onICustomJavaDataType
.- Parameters:
clazz
- a data type class based onICustomJavaDataType
-
-
Method Detail
-
copy
public TYPE copy(Object obj)
Description copied from interface:IDataTypeAdapter
Create a copy of the provided value.- Parameters:
obj
- the value to copy- Returns:
- the copy
-
-