DocBook|Search
Class Reference
%XML.XPATH.Utils.TreeBuilder
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%XML] >  [XPATH] >  [Utils] >  [TreeBuilder]
Private  Storage  

class %XML.XPATH.Utils.TreeBuilder extends %XML.XPATH.ResultHandler

This class stores the results of evaluation of an XPATH expression in ^CacheTemp(Tree,MatchKey) The Tree is a unique integer value, the MatchKey is an integer key which varies from 1 .. n. For each match of the xpath expression, the results are stored in the appropriate subtree of ^CacheTemp. The match results can be of two forms, values and DOMS. If the XPATH expression matches an element, a DOM is returned which represents the matching element and it's childeren. If the XPATH expression matches a value then just the value is returned.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 6


Summary

Properties
Results Tree

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject Attribute EndMatch Node
NodeType Result StartMatch Value


Properties

• property Results as %CacheString;
This holds the collection of results
• property Tree as %Integer;
This holds the current first subscript of ^CacheTemp

Methods

• method Attribute(pIndex As %Integer, pParent As %Integer, pName As %String, pLocalName As %String, pUri As %String, pValue As %String)
• method EndMatch(pMatch As %Integer)
This method is called at the end of a match
• method Node(pIndex As %Integer, pParent As %Integer, pNodeType As %Integer, pName As %String, pLocalName As %String, pUri As %String)
• method Result(pChunk As %Integer, pResult As %String)
• method StartMatch(pResultType As %Integer)
This method is called when a match is made. It specifies the Match key as well as the type. The type may be $$$XPATHVALUE or $$$XPATHDOM
• method Value(pIndex As %Integer, pChunk As %Integer, pValue As %String)