org.exolab.castor.xml.location
Class XPathLocation
java.lang.Object
org.exolab.castor.xml.location.XPathLocation
- Location, java.io.Serializable
public class XPathLocation
extends java.lang.Object
implements Location, java.io.Serializable
A very simple XPath location class for use with the ValidationException. This
class only supports the parent "/" operator and element names.
$Revision: 6936 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
void | addAttribute(String name) - Adds an attribute to the XPath location.
|
void | addChild(String name) - Adds the given element name as a child of the current path.
|
void | addParent(String name) - Adds the name as a parent of the current path.
|
String | toString() - Returns the String representation of this XPathLocation.
|
XPathLocation
public XPathLocation()
Creates a default XPathLocation.
addAttribute
public void addAttribute(String name)
Adds an attribute to the XPath location.
name
- the name of the attribute
addChild
public void addChild(String name)
Adds the given element name as a child of the current path.
name
- the name to add as a child
addParent
public void addParent(String name)
Adds the name as a parent of the current path.
name
- the name to add as a parent
toString
public String toString()
Returns the String representation of this XPathLocation.
- toString in interface Location
- the String representation of this XPathLocation.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com