@data public class PropertyConstraint extends Constraint
| Modifier and Type | Field and Description |
|---|---|
Object |
comparableValue
The value to compare with.
|
Comparator |
comparator
The operator to compare with
|
String |
propertyName
The property to be matched by this constraint
Eg.
|
targetType| Constructor and Description |
|---|
PropertyConstraint() |
| Modifier and Type | Method and Description |
|---|---|
PropertyConstraint |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Object obj) |
Object |
getPropValue()
Deprecated.
Use
comparableValue instead. |
int |
hashCode() |
void |
setPropValue(Object value)
Deprecated.
Use
comparableValue instead. |
public String propertyName
Wildcards: The following wildcard can be used "*" to request all properties. Note that the wildcard "*" represents all properties of the kind implied by the interpretation context. E.g., if used in a PropertyConstraint with the operator TEXTUALLY_MATCHES, it'd imply all textual properties.
VMODL1 property names must never be qualified with resource model name (i.e. for resource type "VirtualMachine", property "name" is valid while "VirtualMachine/name" is not). VMODL2 property names must always be qualified with resource model name.
public Comparator comparator
public Object comparableValue
@Deprecated public Object getPropValue()
comparableValue instead.comparableValue@Deprecated public void setPropValue(Object value)
comparableValue instead.value - If the passed value isn't equal to null, set the
comparableValue to it.public PropertyConstraint clone() throws CloneNotSupportedException
clone in class ConstraintCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class Constraintpublic int hashCode()
hashCode in class ConstraintCopyright @ 2013 VMware, Inc. All rights reserved.