Class XmlNodeItemType

java.lang.Object
org.rumbledb.types.AbstractItemType
org.rumbledb.types.XmlNodeItemType
All Implemented Interfaces:
Serializable, ItemType

public class XmlNodeItemType extends AbstractItemType
Class representing a concrete XML node item type at depth 2 in the type hierarchy. This class now covers the remaining concrete XML node kinds after dedicated implementations for element(), attribute(), document-node(), and processing-instruction(): comment(), text(), namespace-node(). All concrete node types share node() as their base type at depth 1.
See Also:
  • Method Details

    • hasName

      public boolean hasName()
      Description copied from interface: ItemType
      Tests for QName.
      Returns:
      true if [this] item type has a QName
    • getName

      public Name getName()
      Returns:
      the itemtype QName if available
    • isNodeItemType

      public boolean isNodeItemType()
      Returns:
      true if [this] is a node item type (node() or any of its 7 concrete subtypes).
    • getTypeTreeDepth

      public int getTypeTreeDepth()
      Returns:
      an int representing the depth of the item type in the type tree ('item' is the root with depth 0)
    • getBaseType

      public ItemType getBaseType()
      Returns:
      the base type for a type, return null for the topmost item type
    • getAllowedFacets

      public Set<ConstrainingFacetTypes> getAllowedFacets()
      Returns:
      a set containing the allowed facets for restricting the type
    • toString

      public String toString()
      Specified by:
      toString in interface ItemType
      Overrides:
      toString in class Object
    • isResolved

      public boolean isResolved()
    • isCompatibleWithDataFrames

      public boolean isCompatibleWithDataFrames(RumbleConfiguration configuration)
      Description copied from interface: ItemType
      Checks compatibility with DataFrames.
      Returns:
      true if compatible with DataFrames and false otherwise.