@Immutable public class PropertyExistence extends Object implements Constraint, PropertyExistence
| Constructor and Description |
|---|
PropertyExistence(SelectorName selectorName,
String propertyName)
Create a constraint requiring that a property exist on a node.
|
| 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() |
String |
getSelectorName() |
int |
hashCode() |
SelectorName |
selectorName()
Get the name of the selector.
|
String |
toString() |
public PropertyExistence(SelectorName selectorName, String propertyName)
selectorName - the name of the node selectorpropertyName - the name of the property that must existpublic final SelectorName selectorName()
public String getSelectorName()
getSelectorName in interface PropertyExistencepublic final String getPropertyName()
getPropertyName in interface PropertyExistenceCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.