|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ogi.cse.xs.common.SimplePath
public class SimplePath
Constructor Summary | |
---|---|
SimplePath()
Public constructor. |
|
SimplePath(java.lang.String spathStr)
Public constructor. |
|
SimplePath(java.lang.String[] path)
Public constructor. |
|
SimplePath(java.util.Vector path)
Public constructor. |
Method Summary | |
---|---|
void |
append(java.lang.String str)
Method to append one component to Simple path |
java.lang.Object |
clone()
clone |
java.lang.String |
component(int i)
Method to get ith component |
SimplePath |
concate(SimplePath sp)
|
boolean |
equals(java.lang.Object obj)
equals |
int |
hashCode()
|
void |
insert(java.lang.String str,
int i)
Method to insert one component before ith component to Simple path |
boolean |
isParentPath(SimplePath sp)
|
java.lang.String |
lastComponent()
Method to get last component of the Simple path |
boolean |
prefixedBy(SimplePath sp)
|
java.lang.String |
remove(int i)
Method to remove one component from Simple path |
java.lang.String |
removeLastComponent()
|
int |
size()
Method to get size of the Simple path |
java.lang.String |
toString()
toString() |
java.lang.String |
toString(java.lang.String sep)
|
java.lang.String |
toXPath()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimplePath()
public SimplePath(java.lang.String[] path)
an
- array of stringspublic SimplePath(java.util.Vector path)
a
- vector of stringspublic SimplePath(java.lang.String spathStr)
spathStr
- a "_" delimited string, e.g. A_B_CMethod Detail |
---|
public java.lang.String component(int i)
public java.lang.String lastComponent()
public int size()
public java.lang.String remove(int i)
public java.lang.String removeLastComponent()
public void insert(java.lang.String str, int i)
str
- the content to be insertedi
- the index to be insertedpublic void append(java.lang.String str)
the
- content to be appendedpublic java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String sep)
public java.lang.String toXPath()
public boolean prefixedBy(SimplePath sp)
public SimplePath concate(SimplePath sp)
public boolean isParentPath(SimplePath sp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |