public class GenericPropertyHandle extends java.lang.Object implements Property
AutoValue, DEFAULT_DOUBLE, IllegalValue, VoidValue
Constructor and Description |
---|
GenericPropertyHandle(HasProperties host,
PropertyDesc desc) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get()
Returns the value associated with this property.
|
HasProperties |
getHost()
Returns the host object exporting this property.
|
PropertyInfo |
getInfo()
Gets static information about the property.
|
java.lang.String |
getName()
Returns the name associated with this Property.
|
Range |
getRange()
Returns a range that indicates what values are legal for
for this property, or
null if the
property does not have any range limits (i.e., if
any value of appropriate type specified to Property.get()
is valid. |
int |
hashCode() |
void |
resetHost(HasProperties host) |
void |
set(java.lang.Object obj)
Sets the value associated with this property.
|
public GenericPropertyHandle(HasProperties host, PropertyDesc desc)
public java.lang.String getName()
Property
getInfo().getName();
public HasProperties getHost()
Property
public void resetHost(HasProperties host)
public java.lang.Object get()
Property
get
in interface Property
Property.getInfo()
public void set(java.lang.Object obj)
Property
PropertyInfo
method
isReadOnly
returns
true.set
in interface Property
obj
- object containing the value to be set.Property.getInfo()
public Range getRange()
Property
null
if the
property does not have any range limits (i.e., if
any value of appropriate type specified to Property.get()
is valid.public PropertyInfo getInfo()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object