|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.zeigermann.xml.simpleImporter.SimplePath
Rudimentary representation of a path to an XML element.
Two paths match in two cases:
equals(java.lang.Object)
method.
/root/tag
matches /root/tag
and/root/tag
matches tag
.
Field Summary | |
protected String |
path
|
Constructor Summary | |
SimplePath(SimplePath path)
Copy ctor. |
|
SimplePath(String path)
Creates a path object from a string describing it. |
Method Summary | |
boolean |
equals(Object o)
|
boolean |
matches(SimplePath matchPath)
Finds out if the the given path matches this one. |
boolean |
matches(String matchPath)
Finds out if the path represented by the given string matches this one. |
boolean |
matchsAny(Collection paths)
Checks if this path matches any of the paths stored in paths collection. |
boolean |
matchsAny(String[] paths)
Checks if this path matches any of the paths stored in paths collection. |
static String |
stripEndingSlash(String path)
Strips off ending slash from a string if there is one. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String path
Constructor Detail |
public SimplePath(String path)
public SimplePath(SimplePath path)
Method Detail |
public static final String stripEndingSlash(String path)
public boolean matchsAny(Collection paths)
paths
collection. This means we iterate through
paths
and match every entry to this path.
public boolean matchsAny(String[] paths)
paths
collection. This means we iterate through
paths
and match every entry to this path.
public boolean matches(SimplePath matchPath)
public boolean matches(String matchPath)
matches(SimplePath)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |