Package cdc.util.data.paths
Class Path
- java.lang.Object
-
- cdc.util.data.paths.Path
-
public final class Path extends Object
Simple XPath like class.Can only handle relative paths like: foo, foo/bar foo[@bar='fred'], foo/@bar, ...
- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)PartgetLastPart()intgetLength()StringgetName()PathgetParent()PartgetPart(int index)Part[]getParts()PathgetSubPath(int beginIndex, int endIndex)inthashCode()Pathnormalize()StringtoString()
-
-
-
Constructor Detail
-
Path
public Path(String name)
-
-
Method Detail
-
normalize
public Path normalize()
-
getName
public String getName()
-
getParts
public Part[] getParts()
-
getPart
public Part getPart(int index)
-
getLastPart
public Part getLastPart()
-
getLength
public int getLength()
-
getParent
public Path getParent()
-
getSubPath
public Path getSubPath(int beginIndex, int endIndex)
-
-