org.exolab.castor.xml

Class XPathLocation

Implemented Interfaces:
Location

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.1.1.1 $ $Date: 2003/03/03 07:09:17 $
Author:
Keith Visco

Field Summary

(package private) boolean
allowChildrenOrAtts
(package private) Vector
path

Constructor Summary

XPathLocation()
Creates a default XPathLocation

Method Summary

void
addAttribute(String name)
void
addChild(String name)
Adds the 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

Field Details

allowChildrenOrAtts

(package private)  boolean allowChildrenOrAtts

path

(package private)  Vector path

Constructor Details

XPathLocation

public XPathLocation()
Creates a default XPathLocation

Method Details

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
Specified by:
toString in interface Location

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com