All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.jdom.IllegalAddException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----java.lang.IllegalArgumentException
                                   |
                                   +----org.jdom.IllegalAddException

public class IllegalAddException
extends IllegalArgumentException

IllegalAddException is thrown when an {@link Element} or {@link Attribute} is added to a JDOM construct illegally..

Version:
1.0
Author:
Brett McLaughlin

Constructor Index

 o IllegalAddException(Document, Comment, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Document, DocType, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Document, Element, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Document, ProcessingInstruction, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, Attribute, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, Comment, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, Element, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, EntityRef, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, Namespace, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(Element, ProcessingInstruction, String)

This will create an Exception indicating that the addition of the {

 o IllegalAddException(String)

This will create an Exception with the specified error message.

Constructors

 o IllegalAddException
 public IllegalAddException(Element base,
                            Attribute added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Attribute} supplied to the {@link Element} supplied is illegal.

Parameters:
base - Element that Attribute couldn't be added to
added - Attribute that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Element base,
                            Element added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Element} supplied as a child of the supplied parent is not allowed.

Parameters:
base - Element that the child couldn't be added to
added - Element that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Document base,
                            Element added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Element} supplied as a child of the document is not allowed.

 o IllegalAddException
 public IllegalAddException(Element base,
                            ProcessingInstruction added,
                            String reason)

This will create an Exception indicating that the addition of the {@link ProcessingInstruction} supplied as content to the supplied element is not allowed.

Parameters:
base - element that the PI couldn't be added to
added - PI that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Document base,
                            ProcessingInstruction added,
                            String reason)

This will create an Exception indicating that the addition of the {@link ProcessingInstruction} supplied as content to the supplied document is not allowed.

Parameters:
base - document that the PI couldn't be added to
added - PI that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Element base,
                            Comment added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Comment} supplied as content to the supplied element is not allowed.

Parameters:
base - element that the comment couldn't be added to
added - comment that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Document base,
                            Comment added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Comment} supplied as content to the supplied document is not allowed.

Parameters:
base - document that the PI couldn't be added to
added - PI that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Element base,
                            EntityRef added,
                            String reason)

This will create an Exception indicating that the addition of the {@link EntityRef} supplied as content to the supplied element is not allowed.

Parameters:
base - element that the entity couldn't be added to
added - entity reference that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Element base,
                            Namespace added,
                            String reason)

This will create an Exception indicating that the addition of the {@link Namespace} to the supplied element is not allowed.

Parameters:
base - element that the entity couldn't be added to
added - namespace that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(Document base,
                            DocType added,
                            String reason)

This will create an Exception indicating that the addition of the {@link DocType} to the supplied document is not allowed.

Parameters:
base - document that the entity couldn't be added to
added - doctype that could not be added
reason - cause for the problem
 o IllegalAddException
 public IllegalAddException(String reason)

This will create an Exception with the specified error message.


All Packages  Class Hierarchy  This Package  Previous  Next  Index