public final class Path
extends java.lang.Object
Can only handle relative paths like: foo, foo/bar foo[@bar='fred'], foo/@bar, ...
| Constructor | Description |
|---|---|
Path(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
Part |
getLastPart() |
|
int |
getLength() |
|
java.lang.String |
getName() |
|
Path |
getParent() |
|
Part |
getPart(int index) |
|
Part[] |
getParts() |
|
Path |
getSubPath(int beginIndex,
int endIndex) |
|
int |
hashCode() |
|
Path |
normalize() |
|
java.lang.String |
toString() |
public Path normalize()
public java.lang.String getName()
public Part[] getParts()
public Part getPart(int index)
public Part getLastPart()
public int getLength()
public Path getParent()
public Path getSubPath(int beginIndex, int endIndex)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All rights reserved.