Module dev.metaschema.databind
Class NullJavaTypeAdapter.VoidItem
java.lang.Object
dev.metaschema.databind.model.annotations.NullJavaTypeAdapter.VoidItem
- All Implemented Interfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem
- Enclosing class:
- NullJavaTypeAdapter
A placeholder atomic item type that throws unsupported operation exceptions
for all operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMapKey()Get the atomic item value as a map key for use with anIMapItem.asString()Get the item's string value.castAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.booleandeepEquals(ICollectionValue other) Determine if this and the other value are deeply equal, without relying on the dynamic context.booleandeepEquals(ICollectionValue other, DynamicContext dynamicContext) Determine if this and the other value are deeply equal.Get the item's type adapter.getType()Get the type information for the item.getValue()Get the "wrapped" value represented by this item.Get the atomic value for the item.Get a representation of the value based on its type signature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asStringItem, atomizeMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, hasValue, toSequence
-
Constructor Details
-
VoidItem
protected VoidItem()
-
-
Method Details
-
getValue
Description copied from interface:IAnyAtomicItemGet the "wrapped" value represented by this item.- Specified by:
getValuein interfaceIAnyAtomicItem- Specified by:
getValuein interfaceIItem- Returns:
- the value
-
toAtomicItem
Description copied from interface:IItemGet the atomic value for the item. This may be the same item if the item is an instance ofIAnyAtomicItem.An implementation of item atomization.
- Specified by:
toAtomicItemin interfaceIAnyAtomicItem- Specified by:
toAtomicItemin interfaceIItem- Returns:
- the atomic value or
nullif the item has no available value
-
asString
Description copied from interface:IAnyAtomicItemGet the item's string value.- Specified by:
asStringin interfaceIAnyAtomicItem- Returns:
- the string value value of the item
-
getJavaTypeAdapter
Description copied from interface:IAnyAtomicItemGet the item's type adapter.- Specified by:
getJavaTypeAdapterin interfaceIAnyAtomicItem- Returns:
- the type adapter for the item
-
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
-
asMapKey
Description copied from interface:IAnyAtomicItemGet the atomic item value as a map key for use with anIMapItem.- Specified by:
asMapKeyin interfaceIAnyAtomicItem- Returns:
- the map key
-
getType
Description copied from interface:IItemGet the type information for the item. -
toSignature
Description copied from interface:ICollectionValueGet a representation of the value based on its type signature.- Specified by:
toSignaturein interfaceICollectionValue- Returns:
- the signature
-
deepEquals
Description copied from interface:ICollectionValueDetermine if this and the other value are deeply equal.Item equality is defined by the XPath 3.1 fn:deep-equal specification.
- Specified by:
deepEqualsin interfaceICollectionValue- Parameters:
other- the other value to compare to this value todynamicContext- used to provide evaluation information, including the implicit timezone- Returns:
- the
trueif the two values are equal, orfalseotherwise
-
deepEquals
Description copied from interface:IAnyAtomicItemDetermine if this and the other value are deeply equal, without relying on the dynamic context.This is used by
IMapKey.isSameKey(IMapKey)to determine key equivalence.Item equality is defined by the XPath 3.1 fn:deep-equal specification.
- Specified by:
deepEqualsin interfaceIAnyAtomicItem- Parameters:
other- the other value to compare to this value to- Returns:
- the
trueif the two values are equal, orfalseotherwise
-