xtom.parser
Class MultipleElementInstancesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
xtom.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
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 |
ePath
private java.lang.String ePath
parentElement
private Element parentElement
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.
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.