public class CtElementPathBuilder
extends java.lang.Object
Constructor and Description |
---|
CtElementPathBuilder() |
Modifier and Type | Method and Description |
---|---|
CtPath |
fromElement(CtElement el)
Build absolute path to a CtElement el.
|
CtPath |
fromElement(CtElement el,
CtElement root)
Build path to a CtElement el, from one of its parent.
|
CtElementPathBuilder |
setUseNamesInPath(boolean useNamesInPath)
Configures what kind of path is generated for List based attributes
A) #superRole[index=x] - always use index to identify item of List. |
public CtPath fromElement(CtElement el) throws CtPathException
el
- : the element to which the CtPath leads toCtPathException
- is thrown when root is not a parent of el.public CtPath fromElement(CtElement el, CtElement root) throws CtPathException
el
- : the element to which the CtPath leads toroot
- : Starting point of the CtPathCtPathException
- is thrown when root is not a parent of el.public CtElementPathBuilder setUseNamesInPath(boolean useNamesInPath)
useNamesInPath
- if true then names are used instead of indexCopyright © 2007–2021 Inria. All rights reserved.