Package com.saxonica.xsltextn.pedigree
Interface PedigreeValue
-
- All Known Implementing Classes:
PedigreeArrayItem,PedigreeMapItem
public interface PedigreeValueAPedigreeValueis a map or array together with aPedigreeindicating how that map or array was selected within a JSON-like tree structure.The
PedigreeValuedelegates all map and array operations to the wrapped map or array (called the base item), and in addition offers the ability to retrace the selection steps to establish the containing maps or arrays in the tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ItemgetBaseItem()Get the base item, that is, the map or array that is wrapped by thisPedigreeValuedefault PedigreeValuegetOrigin()Get the root of the pedigree tree: that is, retrace the steps used to select this map or array until a map or array with an emptyPedigreeis found.PedigreegetPedigree()Get thePedigreeof this value, that is, information about the containing maps and arrays in the containing tree
-
-
-
Method Detail
-
getPedigree
Pedigree getPedigree()
Get thePedigreeof this value, that is, information about the containing maps and arrays in the containing tree- Returns:
- the associated
Pedigree.
-
getBaseItem
Item getBaseItem()
Get the base item, that is, the map or array that is wrapped by thisPedigreeValue- Returns:
- the base item.
-
getOrigin
default PedigreeValue getOrigin()
Get the root of the pedigree tree: that is, retrace the steps used to select this map or array until a map or array with an emptyPedigreeis found.- Returns:
- the root of the pedigree tree.
-
-