程序包 weka.core

类 PropertyPath.Path

java.lang.Object
weka.core.PropertyPath.Path
所有已实现的接口:
RevisionHandler
封闭类:
PropertyPath

public static class PropertyPath.Path extends Object implements RevisionHandler
Contains a (property) path structure
版本:
$Revision: 4742 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 构造器详细资料

    • Path

      public Path(String path)
      uses the given dot-path
      参数:
      path - path in dot-notation
    • Path

      public Path(Vector elements)
      uses the vector with PathElement objects to initialize with
      参数:
      elements - the PathElements to use
    • Path

      public Path(String[] elements)
      uses the given array as elements for the path
      参数:
      elements - the path elements to use
  • 方法详细资料

    • get

      public PropertyPath.PathElement get(int index)
      returns the element at the given index
      参数:
      index - the index of the element to return
      返回:
      the specified element
    • size

      public int size()
      returns the number of path elements of this structure
      返回:
      the number of path elements
    • parsePath

      public static PropertyPath.Path parsePath(String path)
      returns a path object based on the given path string
      参数:
      path - path to work on
      返回:
      the path structure
    • subpath

      public PropertyPath.Path subpath(int startIndex)
      returns a subpath of the current structure, starting with the specified element index up to the end
      参数:
      startIndex - the first element of the subpath
      返回:
      the new subpath
    • subpath

      public PropertyPath.Path subpath(int startIndex, int endIndex)
      returns a subpath of the current structure, starting with the specified element index up. The endIndex specifies the element that is not part of the new subpath. In other words, the new path contains the elements from "startIndex" up to "(endIndex-1)".
      参数:
      startIndex - the first element of the subpath
      endIndex - the element that is after the last added element
      返回:
      the new subpath
    • toString

      public String toString()
      returns the structure again as a dot-path
      覆盖:
      toString 在类中 Object
      返回:
      the path structure as dot-path
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision