org.jasig.portal.car
Class Path
java.lang.Object
org.jasig.portal.car.Path
public class Path
- extends Object
Holds onto a set of String path elements to assist with tracking where in
an XML structure SAX processing is currently working. So an XML structure
like the following would have a path of "", "", "" when SAX
processing issued a startElement event call for the "more" element.
<top>
<next>
<more>
...
Use the fromXML method to create from a more visually symbolic view of
what the path represents.
|
Constructor Summary |
Path()
Create a new empty path. |
RCS_ID
public static final String RCS_ID
- See Also:
- Constant Field Values
Path
public Path()
- Create a new empty path.
fromTag
public static Path fromTag(String tagName)
fromXML
public static Path fromXML(String xmlPath)
- Creates a Path from the XML structured snippet. The following call
would create a path that contained "top", "next", and "more" in that
order.
append
public Path append(String item)
- Add an item to the path.
removeLast
public String removeLast()
- Remove the last item off of the path.
equals
public boolean equals(Object o)
- Returns true if the passed in object is a path with the same number of
path items and all strings in the two paths are equal.
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010 Jasig. All Rights Reserved.