Module dev.metaschema.core
Class AbstractAtomicItemBase<TYPE>
java.lang.Object
dev.metaschema.core.metapath.item.atomic.AbstractAtomicItemBase<TYPE>
- Type Parameters:
TYPE- the Java type of the underlying data value
- All Implemented Interfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem
- Direct Known Subclasses:
AbstractAnyAtomicItem
Provides base functionality for atomic item implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Get the item's string value.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.abstract IDataTypeAdapter<TYPE>Get the item's type adapter.protected abstract StringGet the string to use for the item's value in the item's signature.Get a representation of the value based on its type signature.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asStringItem, atomize, castAsType, getValue, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, getType, hasValue, toSequence
-
Constructor Details
-
AbstractAtomicItemBase
public AbstractAtomicItemBase()
-
-
Method Details
-
getJavaTypeAdapter
Description copied from interface:IAnyAtomicItemGet the item's type adapter.- Specified by:
getJavaTypeAdapterin interfaceIAnyAtomicItem- Returns:
- the type adapter for the item
-
asString
Description copied from interface:IAnyAtomicItemGet the item's string value.- Specified by:
asStringin interfaceIAnyAtomicItem- Returns:
- the string value value of 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
-
getValueSignature
Get the string to use for the item's value in the item's signature.- Returns:
- the value string
-
toString
-
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
Determine if this and the other value are deeply equal, without relying on the dynamic context.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
-