Package org.exolab.castor.xml.location
Class XPathLocation
java.lang.Object
org.exolab.castor.xml.location.XPathLocation
- All Implemented Interfaces:
Serializable
,Location
A very simple XPath location class for use with the ValidationException. This
class only supports the parent "/" operator and element names.
- Version:
- $Revision: 8145 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name) Adds an attribute to the XPath location.void
Adds the given element name as a child of the current path.void
Adds the name as a parent of the current path.toString()
Returns the String representation of this XPathLocation.
-
Constructor Details
-
XPathLocation
public XPathLocation()Creates a default XPathLocation.
-
-
Method Details
-
addAttribute
Adds an attribute to the XPath location.- Parameters:
name
- the name of the attribute
-
addChild
Adds the given element name as a child of the current path.- Parameters:
name
- the name to add as a child
-
addParent
Adds the name as a parent of the current path.- Parameters:
name
- the name to add as a parent
-
toString
Returns the String representation of this XPathLocation.
-