public final class Introspector extends Object
Constructor and Description |
---|
Introspector() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsValidProperty(Object object,
String name,
String value)
Indicates whether or not the given
object contains a
valid property with the given name and value . |
Object |
getProperty(Object object,
String name)
Attempts to retrieve the property with the given
name on the object . |
static Introspector |
instance()
Gets the shared instance.
|
boolean |
isReadable(Object object,
String name)
Indicates if the
object has a property that
is readable with the given name . |
boolean |
isWritable(Object object,
String name)
Indicates if the
object has a property that
is writable with the given name . |
void |
setProperty(Object object,
String name,
Object value)
Sets the property having the given
name on the object
with the given value . |
void |
shutdown()
Shuts this instance down and reclaims
any resources used by this instance.
|
String |
toString() |
public Introspector()
public static Introspector instance()
public boolean containsValidProperty(Object object, String name, String value)
Indicates whether or not the given object
contains a
valid property with the given name
and value
.
A valid property means the following:
true
false
object
- the object to test for the valid property.name
- the name of the property for which to test.value
- the value to evaluate against.public void setProperty(Object object, String name, Object value)
name
on the object
with the given value
.object
- the object on which to set the property.name
- the name of the property to populate.value
- the value to give the property.public final Object getProperty(Object object, String name)
name
on the object
.object
- the object to which the property belongs.name
- the name of the propertypublic boolean isReadable(Object object, String name)
object
has a property that
is readable with the given name
.object
- the object to check.name
- the property to check for.public boolean isWritable(Object object, String name)
object
has a property that
is writable with the given name
.object
- the object to check.name
- the property to check for.public void shutdown()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.