|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.XPathLocation
public class XPathLocation
A very simple XPath location class for use with the ValidationException. This class only supports the parent "/" operator and element names.
Field Summary | |
---|---|
(package private) boolean |
allowChildrenOrAtts
|
(package private) java.util.Vector |
path
|
Constructor Summary | |
---|---|
XPathLocation()
Creates a default XPathLocation |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String name)
|
void |
addChild(java.lang.String name)
Adds the name as a child of the current path |
void |
addParent(java.lang.String name)
Adds the name as a parent of the current path |
java.lang.String |
toString()
Returns the String representation of this XPathLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Vector path
boolean allowChildrenOrAtts
Constructor Detail |
---|
public XPathLocation()
Method Detail |
---|
public void addAttribute(java.lang.String name)
public void addChild(java.lang.String name)
name
- the name to add as a childpublic void addParent(java.lang.String name)
name
- the name to add as a parentpublic java.lang.String toString()
toString
in interface Location
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |