Module dev.metaschema.core
Interface IIPAddressItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem
- All Known Subinterfaces:
IIPv4AddressItem,IIPv6AddressItem
An atomic Metapath item representing an IP address data value.
-
Method Summary
Modifier and TypeMethodDescriptioninet.ipaddr.IPAddressGet the "wrapped" IP address value.static IIPAddressItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default intcompareTo(IIPAddressItem item) Compares this value with the argument.default IAtomicOrUnionType<? extends IIPAddressItem>getType()Get the type information for the item.static IAtomicOrUnionType<IIPAddressItem>type()Get the type information for this item.Methods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asString, asStringItem, atomize, castAsType, deepEquals, getJavaTypeAdapter, getValue, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods 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. -
asIpAddress
@NonNull inet.ipaddr.IPAddress asIpAddress()Get the "wrapped" IP address value.- Returns:
- the underlying IP address value
-
compareTo
Compares this value with the argument.- Parameters:
item- the item to compare with this value- Returns:
- a negative integer, zero, or a positive integer if this value is less
than, equal to, or greater than the
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
-