|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
A handle object used to access values and obtain information for a specific property exported by an object.
Field Summary | |
---|---|
static java.lang.Class<?> |
AutoValue
Special class type indicating that a value is to be determined automatically. |
static double |
DEFAULT_DOUBLE
Special value of double that can optionally be used to denote default values. |
static java.lang.Class<?> |
IllegalValue
Special class type indicating an invalid value. |
static java.lang.Class<?> |
VoidValue
Special class type indicating no specified value. |
Method Summary | |
---|---|
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 get()
is valid. |
void |
set(java.lang.Object value)
Sets the value associated with this property. |
Field Detail |
---|
static final java.lang.Class<?> VoidValue
null
since the latter may itself be a valid value.
static final java.lang.Class<?> AutoValue
static final java.lang.Class<?> IllegalValue
static final double DEFAULT_DOUBLE
Method Detail |
---|
java.lang.Object get()
getInfo()
void set(java.lang.Object value)
PropertyInfo
method
isReadOnly
returns
true.
value
- object containing the value to be set.getInfo()
Range getRange()
null
if the
property does not have any range limits (i.e., if
any value of appropriate type specified to get()
is valid.
null
if there are no limits.java.lang.String getName()
getInfo().getName();
HasProperties getHost()
PropertyInfo getInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |