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 PropertyDescriptor
m_Descriptor
the descriptor.protected Object
m_Object
the associated object.protected PropertyPath.Path
m_Path
the path to this property.protected Method
m_Read
the read method.protected Method
m_Write
the 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 Object
getObject()
returns the stored object.PropertyPath.Path
getPath()
Returns the associated path.Method
getReadMethod()
Returns the read method.Method
getWriteMethod()
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
-
-