org.exolab.castor.xml

Class XPathLocation

public class XPathLocation extends 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: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $

Author: Keith Visco

Field Summary
booleanallowChildrenOrAtts
Vectorpath
Constructor Summary
XPathLocation()
Creates a default XPathLocation
Method Summary
voidaddAttribute(String name)
voidaddChild(String name)
Adds the name as a child of the current path
voidaddParent(String name)
Adds the name as a parent of the current path
StringtoString()
Returns the String representation of this XPathLocation

Field Detail

allowChildrenOrAtts

boolean allowChildrenOrAtts

path

Vector path

Constructor Detail

XPathLocation

public XPathLocation()
Creates a default XPathLocation

Method Detail

addAttribute

public void addAttribute(String name)

addChild

public void addChild(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(String name)
Adds the name as a parent of the current path

Parameters: name the name to add as a parent

toString

public String toString()
Returns the String representation of this XPathLocation
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com