Class IPv4AddressAdapter
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address,IIPv4AddressItem>
-
- gov.nist.secauto.metaschema.core.datatype.adapter.IPv4AddressAdapter
-
- All Implemented Interfaces:
IDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address>
public class IPv4AddressAdapter extends AbstractDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address,IIPv4AddressItem>
-
-
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 inet.ipaddr.ipv4.IPv4Address
copy(Object obj)
Create a copy of the provided value.Class<IIPv4AddressItem>
getItemClass()
Get the java type of the associated item.com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getJsonRawType()
The JSON primative type of the data type.List<String>
getNames()
Get the metaschema type names associated with this adapter.IIPv4AddressItem
newItem(Object value)
Construct a new item of this type using the provided value.inet.ipaddr.ipv4.IPv4Address
parse(String value)
Parses a provided string.-
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
-
getJsonRawType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getJsonRawType()
Description copied from interface:IDataTypeAdapter
The JSON primative type of the data type.- Returns:
- the JSON data type
-
parse
public inet.ipaddr.ipv4.IPv4Address parse(String value)
Description copied from interface:IDataTypeAdapter
Parses 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
-
copy
public inet.ipaddr.ipv4.IPv4Address copy(Object obj)
Description copied from interface:IDataTypeAdapter
Create a copy of the provided value.- Parameters:
obj
- the value to copy- Returns:
- the copy
-
getItemClass
public Class<IIPv4AddressItem> getItemClass()
Description copied from interface:IDataTypeAdapter
Get the java type of the associated item.- Specified by:
getItemClass
in interfaceIDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address>
- Specified by:
getItemClass
in classAbstractDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address,IIPv4AddressItem>
- Returns:
- the java associated item type
-
newItem
public IIPv4AddressItem newItem(Object value)
Description copied from interface:IDataTypeAdapter
Construct a new item of this type using the provided value.- Specified by:
newItem
in interfaceIDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address>
- Specified by:
newItem
in classAbstractDataTypeAdapter<inet.ipaddr.ipv4.IPv4Address,IIPv4AddressItem>
- Parameters:
value
- the item's value- Returns:
- a new item
-
-