Package adams.core.discovery
Class PropertyPath.PropertyContainer
- java.lang.Object
-
- adams.core.discovery.PropertyPath.PropertyContainer
-
- Enclosing class:
- PropertyPath
public static class PropertyPath.PropertyContainer extends Object
A helper class that stores Object and PropertyDescriptor together.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyDescriptorm_Descriptorthe descriptor.protected Objectm_Objectthe associated object.protected PropertyPath.Pathm_Paththe path to this property.protected Methodm_Readthe read method.protected Methodm_Writethe write method.
-
Constructor Summary
Constructors Constructor Description PropertyContainer(PropertyPath.Path path, PropertyDescriptor desc, Object obj)Initializes the container.PropertyContainer(PropertyPath.Path path, Method read, Method write, Object obj)Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetObject()returns the stored object.PropertyPath.PathgetPath()Returns the associated path.MethodgetReadMethod()Returns the read method.MethodgetWriteMethod()Returns the write method.
-
-
-
Field Detail
-
m_Path
protected PropertyPath.Path m_Path
the path to this property.
-
m_Descriptor
protected PropertyDescriptor m_Descriptor
the descriptor.
-
m_Read
protected Method m_Read
the read method.
-
m_Write
protected Method m_Write
the write method.
-
m_Object
protected Object m_Object
the associated object.
-
-
Constructor Detail
-
PropertyContainer
public PropertyContainer(PropertyPath.Path path, PropertyDescriptor desc, Object obj)
Initializes the container.- Parameters:
path- the path to this propertydesc- the property descriptorobj- the associated object
-
PropertyContainer
public PropertyContainer(PropertyPath.Path path, Method read, Method write, Object obj)
Initializes the container.- Parameters:
path- the path to this propertyread- the read methodwrite- the write methodobj- the associated object
-
-
Method Detail
-
getPath
public PropertyPath.Path getPath()
Returns the associated path.- Returns:
- the path
-
getReadMethod
public Method getReadMethod()
Returns the read method.- Returns:
- the method
-
getWriteMethod
public Method getWriteMethod()
Returns the write method.- Returns:
- the method
-
getObject
public Object getObject()
returns the stored object.- Returns:
- the stored object
-
-