Package weka.core
Class PropertyPath.PathElement
java.lang.Object
weka.core.PropertyPath.PathElement
- All Implemented Interfaces:
Cloneable
,RevisionHandler
- Enclosing class:
- PropertyPath
Represents a single element of a property path
- Version:
- $Revision: 8034 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
ConstructorDescriptionPathElement
(String property) initializes the path element with the given property -
Method Summary
Modifier and TypeMethodDescriptionclone()
returns a clone of the current objectint
getIndex()
returns the index of the property, -1 if the property is not an index-based onegetName()
returns the name of the propertyReturns the revision string.boolean
hasIndex()
returns whether the property is an index-based onetoString()
returns the element once again as string
-
Constructor Details
-
PathElement
initializes the path element with the given property- Parameters:
property
- the property to initialize with
-
-
Method Details
-
clone
returns a clone of the current object- Returns:
- the clone of the current state
-
getName
returns the name of the property- Returns:
- the name of the property
-
hasIndex
public boolean hasIndex()returns whether the property is an index-based one- Returns:
- true if the property has an index
-
getIndex
public int getIndex()returns the index of the property, -1 if the property is not an index-based one- Returns:
- the index of the property
-
toString
returns the element once again as string -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-