org.exolab.castor.xml
Class XPathLocation
java.lang.Object
|
+--org.exolab.castor.xml.XPathLocation
- public class XPathLocation
- extends java.lang.Object
- implements Location
A very simple XPath location class for use
with the ValidationException. This class only
supports the parent "/" operator and element names.
- Version:
- $Revision: 1.2 $ $Date: 2000/11/04 01:31:14 $
- Author:
- Keith Visco
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 |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
XPathLocation
public XPathLocation()
- Creates a default XPathLocation
addAttribute
public void addAttribute(java.lang.String name)
addChild
public void addChild(java.lang.String name)
- Adds the name as a child of the current path
- Parameters:
name
- the name to add as a child
addParent
public void addParent(java.lang.String name)
- Adds the name as a parent of the current path
- Parameters:
name
- the name to add as a parent
toString
public java.lang.String toString()
- Returns the String representation of this XPathLocation
- Specified by:
- toString in interface Location
- Overrides:
- toString in class java.lang.Object
- Tags copied from interface: Location
- Returns:
- the String representation of this Location
Intalio Inc. (C) 1999-2001. All rights reserved http://www.intalio.com