- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem
An atomic Metapath item with a namespace qualified name value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IQNameItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IQNameItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default intcompareTo(IQNameItem item) Compares this value with the argument.default IAtomicOrUnionType<IQNameItem>getType()Get the type information for the item.Get the "wrapped" EnhancedQName value.static IAtomicOrUnionType<IQNameItem>type()Get the type information for this item.static IQNameItemvalueOf(IEnhancedQName value) Construct a new QName item using the providedvalue.static IQNameItemConstruct a new QName item using the provided stringvalue.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.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. -
valueOf
Construct a new QName item using the provided stringvalue.- Parameters:
value- a string representing a QName value- Returns:
- the new item
-
valueOf
Construct a new QName item using the providedvalue.- Parameters:
value- a QName- 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
-
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
-
toEnhancedQName
Get the "wrapped" EnhancedQName value.- Returns:
- the underlying QName 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.
-