使用传递给该方法的xpath字符串调用evaluate,在类的构造函数中构建的dom树和常量指示将结果作为一组节点返回。
Evaluate is called with the XPath string passed into the method, the DOM tree you built in the class's constructor, and the constant indicating to return results as a list of nodes.
但是请注意,如果在调用上述方法之前已经建立了树,AXIOM将模拟StAX解析器。
Note, however, that if the tree is built prior to calling either of the above methods, AXIOM will emulate the StAX parser.
通过StAXAPI对某个元素调用第一个方法,可以访问该元素的XMLInfoset,同时缓冲(如果需要)树中未构造的部分以供将来使用。
The first method allows you to access the XML Infoset of the element on which the method is called through the StAX API, while caching (if necessary) any unbuilt parts of tree for later use.
设想一个场景,您想要递归地访问一个目录树,在该树中的每个文件及目录上停下来,并为每个查找到的条目调用您自己的回调方法。
Imagine a scenario in which you want to traverse a directory tree recursively, stopping at each file and directory under that tree and having your own callback methods invoked for each entry found.
回调方法如期望那样被调用,我们可以看到,树中的所有文件都已列出,并且所有目录均已被访问。
Our callback methods were invoked as expected, and we can see that all the files in the tree have been listed and all the directories have been visited.
当用户选中/取消选中树查看器中的节点时,用下面的方法调用选择更改侦听器
When the user selects/deselects a node in the tree viewer, the selection changed listener gets called with this: public void selectionChanged(SelectionChangedEvent event).
调用该方法来从向树观察器提供的输入对象中获得树元素。
This method is invoked to obtain tree elements from the input object provided to the tree viewer.
调用该方法时,从当前节点开始向下,树中的每个节点都将被“访问”。
When this method is called, each node in the tree will be "visited," starting with the current node downward. The following methods are invoked per node.
如果要使用尚未公开的方式调整元素或者将元素与任何元素树连接,可以在各元素上调用此方法。
You can call this method on individual elements if you are adjusting them in ways that do not yet expose or connect the element to any element tree.
会为映射到命中测试条件的所有可视对象调用命中测试筛选器回调方法,从您指定的可视对象开始,一直向下延伸到可视化树的分支。
The hit test filter callback method is invoked for all the visual objects that map to the hit test criteria, starting from the visual you specify and descending through its branch of the visual tree.
会为映射到命中测试条件的所有可视对象调用命中测试筛选器回调方法,从您指定的可视对象开始,一直向下延伸到可视化树的分支。
The hit test filter callback method is invoked for all the visual objects that map to the hit test criteria, starting from the visual you specify and descending through its branch of the visual tree.
应用推荐