Module dev.metaschema.core
Interface IIPv6AddressItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IIPAddressItem,IItem
An atomic Metapath item containing an IPv6 address data value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IIPv6AddressItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IIPv6AddressItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IIPv6AddressItem>getType()Get the type information for the item.inet.ipaddr.ipv6.IPv6AddressgetValue()Get the "wrapped" value represented by this item.static IAtomicOrUnionType<IIPv6AddressItem>type()Get the type information for this item.static IIPv6AddressItemvalueOf(inet.ipaddr.ipv6.IPv6Address value) Construct a new IPv6 item using the providedvalue.static IIPv6AddressItemConstruct a new IPv6 item using the providedvalue.Methods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asString, asStringItem, atomize, deepEquals, getJavaTypeAdapter, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IIPAddressItem
asIpAddress, 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 IPv6 item using the providedvalue.- Parameters:
value- an IPv6 value- Returns:
- the new item
-
valueOf
Construct a new IPv6 item using the providedvalue.- Parameters:
value- an IPv6 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
-
getValue
inet.ipaddr.ipv6.IPv6Address getValue()Description copied from interface:IAnyAtomicItemGet the "wrapped" value represented by this item.- Specified by:
getValuein interfaceIAnyAtomicItem- Specified by:
getValuein interfaceIItem- Returns:
- the 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
-