@Immutable public class SameNode extends Object implements Constraint, SameNode
Constructor and Description |
---|
SameNode(SelectorName selectorName,
String path)
Create a constraint requiring that the node identified by the selector is 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 |
getPath() |
String |
getSelectorName() |
int |
hashCode() |
SelectorName |
selectorName()
Get the name of the selector.
|
String |
toString() |
public SameNode(SelectorName selectorName, String path)
selectorName
- the name of the selectorpath
- the absolute pathIllegalArgumentException
- if the selector name or path are nullpublic final SelectorName selectorName()
public String getSelectorName()
getSelectorName
in interface SameNode
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.