@Immutable public class ReferenceValue extends Object implements DynamicOperand, ReferenceValue
Comparison
constraint.Constructor and Description |
---|
ReferenceValue(SelectorName selectorName)
Create a dynamic operand that evaluates to all of the reference values of the node identified by the selector.
|
ReferenceValue(SelectorName selectorName,
String propertyName)
Create a dynamic operand that evaluates to the values of a single reference property of the node identified by the
selector.
|
ReferenceValue(SelectorName selectorName,
String propertyName,
boolean includeWeakReferences,
boolean includeSimpleReferences)
Create a dynamic operand that evaluates to the values of a single reference property of the node identified 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 |
getPropertyName()
Get the name of the one reference property.
|
String |
getSelectorName()
Get the selector symbol upon which this operand applies.
|
int |
hashCode() |
boolean |
includeSimpleReferences()
Return whether simple references should be included
|
boolean |
includesWeakReferences()
Get whether weak references should be included.
|
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 ReferenceValue(SelectorName selectorName)
selectorName
- the name of the selectorIllegalArgumentException
- if the selector name is nullpublic ReferenceValue(SelectorName selectorName, String propertyName, boolean includeWeakReferences, boolean includeSimpleReferences)
selectorName
- the name of the selectorpropertyName
- the name of the propertyincludeWeakReferences
- true if weak references are to be includedincludeSimpleReferences
- true if simple references are to be includedIllegalArgumentException
- if the selector name is nullpublic ReferenceValue(SelectorName selectorName, String propertyName)
selectorName
- the name of the selectorpropertyName
- the name of the propertyIllegalArgumentException
- if the selector name is nullpublic SelectorName selectorName()
public String getSelectorName()
ReferenceValue
getSelectorName
in interface ReferenceValue
public Set<SelectorName> selectorNames()
DynamicOperand
public final String getPropertyName()
ReferenceValue
getPropertyName
in interface ReferenceValue
public boolean includesWeakReferences()
public boolean includeSimpleReferences()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.