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: 10203 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Field Details

    • 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 Details

    • 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 Details

    • toString

      public String toString()
      Returns a string description of this property.
      Overrides:
      toString in class Object
      Returns:
      a value of type 'String'
    • getRevision

      public String getRevision()
      Returns the revision string.
      Specified by:
      getRevision in interface RevisionHandler
      Returns:
      the revision