@Immutable public class DescendantNode extends Object implements Constraint, DescendantNode
Constructor and Description |
---|
DescendantNode(SelectorName selectorName,
String ancestorPath)
Create a constraint requiring that the node identified by the selector is a descendant of the node reachable by the
supplied absolute path.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
|
boolean |
equals(Object obj) |
String |
getAncestorPath() |
String |
getSelectorName() |
int |
hashCode() |
SelectorName |
selectorName()
Get the name of the selector for the node.
|
String |
toString() |
public DescendantNode(SelectorName selectorName, String ancestorPath)
selectorName
- the name of the selectorancestorPath
- the absolute path to the ancestorpublic final SelectorName selectorName()
public String getSelectorName()
getSelectorName
in interface DescendantNode
public final String getAncestorPath()
getAncestorPath
in interface DescendantNode
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.