public class PropertyConstraint extends Constraint
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
comparableValue
The value to compare with.
|
Comparator |
comparator
The operator to compare with
|
java.lang.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(java.lang.Object obj) |
java.lang.Object |
getPropValue()
Deprecated.
Use
comparableValue instead. |
int |
hashCode() |
void |
setPropValue(java.lang.Object value)
Deprecated.
Use
comparableValue instead. |
public java.lang.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 java.lang.Object comparableValue
@Deprecated public java.lang.Object getPropValue()
comparableValue
instead.comparableValue
@Deprecated public void setPropValue(java.lang.Object value)
comparableValue
instead.value
- If the passed value isn't equal to null
, set the
comparableValue
to it.public PropertyConstraint clone() throws java.lang.CloneNotSupportedException
clone
in class Constraint
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class Constraint
public int hashCode()
hashCode
in class Constraint
Copyright @ 2013-2018 VMware, Inc. All rights reserved.