|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.ojb.util.PersistentFieldVariableImpl
public class PersistentFieldVariableImpl
Implements a persistent field accessor for attributes of Variables. Other types of MBeans and Java Beans are supported as well.
| Field Summary | |
|---|---|
static String |
PATH_TOKEN_EXPRESSION
The field path delimiter. |
| Constructor Summary | |
|---|---|
PersistentFieldVariableImpl(Class type,
String name)
Constructs a new persistent field. |
|
| Method Summary | |
|---|---|
Object |
get(Object variable)
Gets the value of the attribute of the specified variable. |
protected Object |
get(Object variable,
PropertyDescriptor pd)
Gets the value of the specified property of the specified variable. |
protected Object |
get(Object variable,
VariableAttributeInfo info)
Gets the value of the specified attribute of the specified variable. |
protected Object |
getAttributeDescriptor()
Gets the attribute descriptor. |
protected Object[] |
getAttributeGraph(Object variable)
Gets the attribute graph. |
Class |
getDeclaringClass()
|
String |
getName()
|
Class |
getType()
|
void |
set(Object variable,
Object value)
Sets the value of the attribute of the specified variable. |
protected void |
set(Object variable,
PropertyDescriptor pd,
Object value)
Sets the value of the specified property of the specified variable. |
protected void |
set(Object variable,
VariableAttributeInfo info,
Object value)
Sets the value of the specified attribute of the specified variable. |
String |
toString()
|
boolean |
usesAccessorsAndMutators()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PATH_TOKEN_EXPRESSION
| Constructor Detail |
|---|
public PersistentFieldVariableImpl(Class type,
String name)
type - the variable type.name - the attribute name.| Method Detail |
|---|
public String getName()
getName in interface PersistentFieldpublic Class getType()
getType in interface PersistentFieldpublic Class getDeclaringClass()
getDeclaringClass in interface PersistentFieldpublic boolean usesAccessorsAndMutators()
usesAccessorsAndMutators in interface PersistentFieldpublic Object get(Object variable)
For Variables, a string representation is returned if the attribute is serialized.
get in interface PersistentFieldvariable - the variable.
MetadataException - on errors.
public void set(Object variable,
Object value)
throws PersistenceBrokerException
set in interface PersistentFieldvariable - the variable.value - the attribute value.
PersistenceBrokerException - on errors.public String toString()
toString in class Object
protected Object get(Object variable,
VariableAttributeInfo info)
variable - the variable.info - the attribute info.
MetadataException - on errors.
protected Object get(Object variable,
PropertyDescriptor pd)
variable - the variable.pd - the property descriptor.
MetadataException - on errors.
protected void set(Object variable,
VariableAttributeInfo info,
Object value)
variable - the variable.info - the attribute info.value - the attribute value.
MetadataException - on errors.
protected void set(Object variable,
PropertyDescriptor pd,
Object value)
variable - the variable.pd - the property descriptor.value - the attribute value.
MetadataException - on errors.protected Object getAttributeDescriptor()
MetadataException - on introspection errors.protected Object[] getAttributeGraph(Object variable)
variable - the variable.
MetadataException - on introspection errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||