public class PropertyPath extends java.lang.Object implements RevisionHandler
getPropertyDescriptor(vote, "classifiers[1].ridge") will return
the second classifier (which should be our LinearRegression) of the given
Vote meta-classifier and there the property descriptor of the "ridge"
property. getValue(...) will return the actual value of the
ridge parameter and setValue(...) will set it.| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyPath.Path
Contains a (property) path structure
|
static class |
PropertyPath.PathElement
Represents a single element of a property path
|
| Constructor and Description |
|---|
PropertyPath() |
| Modifier and Type | Method and Description |
|---|---|
static weka.core.PropertyPath.PropertyContainer |
find(java.lang.Object src,
PropertyPath.Path path)
returns the property and object associated with the given path, null if
a problem occurred.
|
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.Object src,
PropertyPath.Path path)
returns the property associated with the given path, null if a problem
occurred.
|
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.Object src,
java.lang.String path)
returns the property associated with the given path
|
java.lang.String |
getRevision()
Returns the revision string.
|
static java.lang.Object |
getValue(java.lang.Object src,
PropertyPath.Path path)
returns the value specified by the given path from the object
|
static java.lang.Object |
getValue(java.lang.Object src,
java.lang.String path)
returns the value specified by the given path from the object
|
static void |
main(java.lang.String[] args)
for testing only
|
static boolean |
setValue(java.lang.Object src,
PropertyPath.Path path,
java.lang.Object value)
set the given value specified by the given path in the object
|
static void |
setValue(java.lang.Object src,
java.lang.String path,
java.lang.Object value)
set the given value specified by the given path in the object
|
public static weka.core.PropertyPath.PropertyContainer find(java.lang.Object src,
PropertyPath.Path path)
src - the object to start frompath - the path to followpublic static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object src,
PropertyPath.Path path)
src - the object to start frompath - the path to followpublic static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object src,
java.lang.String path)
src - the object to start frompath - the path to followpublic static java.lang.Object getValue(java.lang.Object src,
PropertyPath.Path path)
src - the object to work onpath - the retrieval pathpublic static java.lang.Object getValue(java.lang.Object src,
java.lang.String path)
src - the object to work onpath - the retrieval pathpublic static boolean setValue(java.lang.Object src,
PropertyPath.Path path,
java.lang.Object value)
src - the object to work onpath - the retrieval pathvalue - the value to setpublic static void setValue(java.lang.Object src,
java.lang.String path,
java.lang.Object value)
src - the object to work onpath - the retrieval pathvalue - the value to setpublic java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - the commandline options - ignoredjava.lang.Exception - if something goes wrong