Class HostnameAdapter
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter<String,ITEM_TYPE>
-
- gov.nist.secauto.metaschema.core.datatype.adapter.AbstractStringAdapter<IHostnameItem>
-
- gov.nist.secauto.metaschema.core.datatype.adapter.HostnameAdapter
-
- All Implemented Interfaces:
IDataTypeAdapter<String>
public class HostnameAdapter extends AbstractStringAdapter<IHostnameItem>
-
-
Field Summary
-
Fields inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter
DEFAULT_JSON_FIELD_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<IHostnameItem>
getItemClass()
Get the java type of the associated item.List<String>
getNames()
Get the metaschema type names associated with this adapter.IHostnameItem
newItem(Object value)
Construct a new item of this type using the provided value.-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.adapter.AbstractStringAdapter
copy, getJsonRawType, parse
-
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
-
-
-
-
Method Detail
-
getNames
public List<String> getNames()
Description copied from interface:IDataTypeAdapter
Get 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
-
getItemClass
@NonNull public Class<IHostnameItem> getItemClass()
Description copied from interface:IDataTypeAdapter
Get the java type of the associated item.- Specified by:
getItemClass
in interfaceIDataTypeAdapter<String>
- Specified by:
getItemClass
in classAbstractDataTypeAdapter<String,IHostnameItem>
- Returns:
- the java associated item type
-
newItem
public IHostnameItem newItem(Object value)
Description copied from interface:IDataTypeAdapter
Construct a new item of this type using the provided value.- Specified by:
newItem
in interfaceIDataTypeAdapter<String>
- Specified by:
newItem
in classAbstractDataTypeAdapter<String,IHostnameItem>
- Parameters:
value
- the item's value- Returns:
- a new item
-
-