Interface IQNameItem

All Superinterfaces:
IAnyAtomicItem, IAtomicValuedItem, ICollectionValue, IItem

public interface IQNameItem extends IAnyAtomicItem
An atomic Metapath item with a namespace qualified name value.
  • Method Details

    • type

      @NonNull static IAtomicOrUnionType<IQNameItem> type()
      Get the type information for this item.
      Returns:
      the type information
    • getType

      default IAtomicOrUnionType<IQNameItem> getType()
      Description copied from interface: IItem
      Get the type information for the item.
      Specified by:
      getType in interface IItem
      Returns:
      the item's type information
    • valueOf

      @NonNull static IQNameItem valueOf(@NonNull String value)
      Construct a new QName item using the provided string value.
      Parameters:
      value - a string representing a QName value
      Returns:
      the new item
    • valueOf

      @NonNull static IQNameItem valueOf(@NonNull IEnhancedQName value)
      Construct a new QName item using the provided value.
      Parameters:
      value - a QName
      Returns:
      the new item
    • cast

      @NonNull static IQNameItem cast(@NonNull IAnyAtomicItem item)
      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 provided item cannot be cast to this type
    • castAsType

      default IQNameItem castAsType(IAnyAtomicItem item)
      Description copied from interface: IAnyAtomicItem
      Cast the provided item to be the same type as this item.
      Specified by:
      castAsType in interface IAnyAtomicItem
      Parameters:
      item - the item to cast
      Returns:
      an atomic item of this type
    • toEnhancedQName

      @NonNull IEnhancedQName toEnhancedQName()
      Get the "wrapped" EnhancedQName value.
      Returns:
      the underlying QName value
    • compareTo

      default int compareTo(@NonNull IQNameItem item)
      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.