Class NullJavaTypeAdapter
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
-
- gov.nist.secauto.metaschema.databind.model.annotations.NullJavaTypeAdapter
-
- All Implemented Interfaces:
IDataTypeAdapter<Void>
public class NullJavaTypeAdapter extends AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
Used to mark a Java type that has no configured adapter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NullJavaTypeAdapter.VoidItem
Used to supportgetItemClass()
.
-
Field Summary
-
Fields inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter
DEFAULT_JSON_FIELD_NAME
-
-
Constructor Summary
Constructors Constructor Description NullJavaTypeAdapter(Class<Void> clazz)
Construct a new adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
copy(Object obj)
Class<NullJavaTypeAdapter.VoidItem>
getItemClass()
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getJsonRawType()
List<String>
getNames()
NullJavaTypeAdapter.VoidItem
newItem(Object value)
Void
parse(String value)
-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter
asString, canHandleQName, cast, castInternal, getDefaultJsonValueKey, getJavaClass, isParsingStartElement, isUnrappedValueAllowedInXml, isXmlMixed, 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
getPreferredName, isAtomic, parseAndSupply, parseAndSupply, parseAndSupply
-
-
-
-
Constructor Detail
-
NullJavaTypeAdapter
public NullJavaTypeAdapter(@NonNull Class<Void> clazz)
Construct a new adapter.- Parameters:
clazz
- the class to adapt
-
-
Method Detail
-
getJsonRawType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getJsonRawType()
-
newItem
public NullJavaTypeAdapter.VoidItem newItem(Object value)
- Specified by:
newItem
in interfaceIDataTypeAdapter<Void>
- Specified by:
newItem
in classAbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
-
getItemClass
public Class<NullJavaTypeAdapter.VoidItem> getItemClass()
- Specified by:
getItemClass
in interfaceIDataTypeAdapter<Void>
- Specified by:
getItemClass
in classAbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
-
-