@Immutable public class ChildNode extends Object implements Constraint, ChildNode
Constructor and Description |
---|
ChildNode(SelectorName selectorName,
String parentPath)
Create a constraint requiring that the node identified by the selector is a child 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 |
getParentPath() |
String |
getSelectorName() |
int |
hashCode() |
SelectorName |
selectorName()
Get the name of the selector representing the child
|
String |
toString() |
public ChildNode(SelectorName selectorName, String parentPath)
selectorName
- the name of the selectorparentPath
- the absolute path to the parentpublic final SelectorName selectorName()
public String getSelectorName()
getSelectorName
in interface ChildNode
public final String getParentPath()
getParentPath
in interface ChildNode
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.