Class QNameItem

java.lang.Object
org.rumbledb.items.QNameItem
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, Serializable, Item

public class QNameItem extends Object implements Item
Atomic item representing an xs:QName value as an expanded name (Name).
See Also:
  • Constructor Details

    • QNameItem

      public QNameItem()
    • QNameItem

      public QNameItem(Name name)
  • Method Details

    • equals

      public boolean equals(Object other)
      Description copied from interface: Item
      Tests for logical equality. The semantics are that of the eq operator.
      Specified by:
      equals in interface Item
      Overrides:
      equals in class Object
      Parameters:
      other - another item.
      Returns:
      true it is equal to other, false otherwise.
    • hashCode

      public int hashCode()
      Description copied from interface: Item
      Computes a hash code.
      Specified by:
      hashCode in interface Item
      Overrides:
      hashCode in class Object
      Returns:
      a hash code as an int.
    • getStringValue

      public String getStringValue()
      Description copied from interface: Item
      Returns the string value of the item, if it is an atomic item.
      Specified by:
      getStringValue in interface Item
      Returns:
      the string value.
    • getVariantValue

      public Object getVariantValue()
      Description copied from interface: Item
      Returns the Object containing the converted value of the item for a DataFrame. For use to build Variant columns.
      Specified by:
      getVariantValue in interface Item
      Returns:
      Object representing the converted value of the item.
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • isQName

      public boolean isQName()
      Description copied from interface: Item
      Tests whether the item is an atomic item of type xs:QName (expanded QName, see Name).
      Specified by:
      isQName in interface Item
      Returns:
      true if it is an xs:QName item, false otherwise.
    • getQNameValue

      public Name getQNameValue()
      Description copied from interface: Item
      Returns the expanded name of this item when it is an xs:QName. Value equality follows Name: same namespace URI and local name; the prefix is not significant for equality.
      Specified by:
      getQNameValue in interface Item
      Returns:
      the expanded name.
    • getDynamicType

      public ItemType getDynamicType()
      Description copied from interface: Item
      Returns the dynamic type of the item (only for error message purposes).
      Specified by:
      getDynamicType in interface Item
      Returns:
      the dynamic type as an item type.
    • isAtomic

      public boolean isAtomic()
      Description copied from interface: Item
      Tests whether the item is an atomic item.
      Specified by:
      isAtomic in interface Item
      Returns:
      true if it is an atomic item, false otherwise.