Package dev.metaschema.core.metapath.item.node


package dev.metaschema.core.metapath.item.node
Node item types representing structured data in the Metapath type system.

This package provides interfaces and implementations for node items, which form tree-structured graphs representing both Metaschema models (module definitions) and data instances conforming to those models. Node items enable navigation and querying of hierarchical data using Metapath expressions.

Core node type interfaces include:

Node items support:

  • XPath-style navigation (parent, child, ancestor, descendant relationships)
  • Document order traversal for predictable query results
  • Access to typed values through IAtomicValuedNodeItem
  • Visitor pattern traversal via INodeItemVisitor
  • Factory-based creation through INodeItemFactory

Node items integrate with Metaschema model definitions in dev.metaschema.core.model, providing runtime representations that can be queried using Metapath expressions. Each node maintains references to its definition (schema-level metadata) and its position within the document tree.

See Also: