Module dev.metaschema.core
Interface IIPv4AddressItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IIPAddressItem,IItem
An atomic Metapath item containing an IPv4 address data value.
-
Method Summary
Modifier and TypeMethodDescriptioninet.ipaddr.ipv4.IPv4AddressGet the "wrapped" IP address value.static IIPv4AddressItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IIPv4AddressItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IIPv4AddressItem>getType()Get the type information for the item.static IAtomicOrUnionType<IIPv4AddressItem>type()Get the type information for this item.static IIPv4AddressItemvalueOf(inet.ipaddr.ipv4.IPv4Address value) Construct a new IPv4 item using the providedvalue.static IIPv4AddressItemConstruct a new IPv4 item using the providedvalue.Methods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asString, asStringItem, atomize, deepEquals, getJavaTypeAdapter, getValue, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IIPAddressItem
compareToMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, hasValue, toSequence
-
Method Details
-
type
Get the type information for this item.- Returns:
- the type information
-
getType
Description copied from interface:IItemGet the type information for the item.- Specified by:
getTypein interfaceIIPAddressItem- Specified by:
getTypein interfaceIItem- Returns:
- the item's type information
-
valueOf
Construct a new IPv4 item using the providedvalue.- Parameters:
value- an IPv4 value- Returns:
- the new item
-
valueOf
Construct a new IPv4 item using the providedvalue.- Parameters:
value- an IPv4 value- Returns:
- the new item
-
cast
Cast the provided type to this item type.- Parameters:
item- the item to cast- Returns:
- the original item if it is already this type, otherwise a new item cast to this type
- Throws:
InvalidValueForCastFunctionException- if the provideditemcannot be cast to this type
-
asIpAddress
inet.ipaddr.ipv4.IPv4Address asIpAddress()Description copied from interface:IIPAddressItemGet the "wrapped" IP address value.- Specified by:
asIpAddressin interfaceIIPAddressItem- Returns:
- the underlying IP address value
-
castAsType
Description copied from interface:IAnyAtomicItemCast the provideditemto be the same type as this item.- Specified by:
castAsTypein interfaceIAnyAtomicItem- Parameters:
item- the item to cast- Returns:
- an atomic item of this type
-