Package weka.experiment
Class PropertyNode
- java.lang.Object
-
- weka.experiment.PropertyNode
-
- All Implemented Interfaces:
Serializable,RevisionHandler
public class PropertyNode extends Object implements Serializable, RevisionHandler
Stores information on a property of an object: the class of the object with the property; the property descriptor, and the current value.- Version:
- $Revision$
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Class<?>parentClassThe class of the object with this propertyPropertyDescriptorpropertyOther info about the propertyObjectvalueThe current property value
-
Constructor Summary
Constructors Constructor Description PropertyNode(Object pValue)Creates a mostly empty property.PropertyNode(Object pValue, PropertyDescriptor prop, Class<?> pClass)Creates a fully specified property node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRevision()Returns the revision string.StringtoString()Returns a string description of this property.
-
-
-
Field Detail
-
value
public Object value
The current property value
-
parentClass
public Class<?> parentClass
The class of the object with this property
-
property
public PropertyDescriptor property
Other info about the property
-
-
Constructor Detail
-
PropertyNode
public PropertyNode(Object pValue)
Creates a mostly empty property.- Parameters:
pValue- a property value.
-
PropertyNode
public PropertyNode(Object pValue, PropertyDescriptor prop, Class<?> pClass)
Creates a fully specified property node.- Parameters:
pValue- the current property value.prop- the PropertyDescriptor.pClass- the Class of the object with this property.
-
-
Method Detail
-
toString
public String toString()
Returns a string description of this property.
-
getRevision
public String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
-