@Immutable public class NodeId extends Object implements DynamicOperand, NodeId
identifier
of a node given by a selector, used in a
Comparison
constraint.Constructor and Description |
---|
NodeId(SelectorName selectorName)
Create a dynamic operand that evaluates to the
identifier of the node described by the
selector. |
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 |
getSelectorName()
Get the selector symbol upon which this operand applies.
|
int |
hashCode() |
SelectorName |
selectorName()
Get the selector symbol upon which this operand applies.
|
Set<SelectorName> |
selectorNames()
Get the selector symbols to which this operand applies.
|
String |
toString() |
public NodeId(SelectorName selectorName)
identifier
of the node described by the
selector.selectorName
- the name of the selectorIllegalArgumentException
- if the selector name or property name are nullpublic SelectorName selectorName()
public Set<SelectorName> selectorNames()
DynamicOperand
public String getSelectorName()
NodeId
getSelectorName
in interface NodeId
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.