xtom.parser
Class MultipleElementInstancesException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byxtom.parser.MultipleElementInstancesException
All Implemented Interfaces:
java.io.Serializable

public class MultipleElementInstancesException
extends java.lang.RuntimeException

Description:

Version:
$Revision: 1.1 $
Author:
taras
See Also:
Serialized Form

Field Summary
private  java.lang.String ePath
           
private  Element parentElement
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
MultipleElementInstancesException(java.lang.String m, java.lang.String elementPath, Element parentElement)
          Creates a new exception, which is used to tell the developer that there are multiple elements of the same name that corresponed to that path.
 
Method Summary
 java.lang.String getElementPath()
          Returns the path to the element in root/element1/element2 form.
 Element getParentElement()
          Returns the Parent Element, which has multiple children.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ePath

private java.lang.String ePath

parentElement

private Element parentElement
Constructor Detail

MultipleElementInstancesException

public MultipleElementInstancesException(java.lang.String m,
                                         java.lang.String elementPath,
                                         Element parentElement)
Creates a new exception, which is used to tell the developer that there are multiple elements of the same name that corresponed to that path.

Parameters:
m - The message.
elementPath - The path to the element.
Method Detail

getElementPath

public java.lang.String getElementPath()
Returns the path to the element in root/element1/element2 form.

Returns:

getParentElement

public Element getParentElement()
Returns the Parent Element, which has multiple children. This is added at the point where the MultipleElementInstnacesException is thrown.

Returns:
Returns the parentElement.