Before

…lines 1–120 unchanged (120 lines)
121 * implementation to use via JAXP, and if JAXP does not exist or there's a
122 * problem, will fall back to the default parser.
123 */
124 public DOMOutputter() {
125 this(null, null, null);
126 }
127
128 /**
129 * This creates a new DOMOutputter which uses the defalt (JAXP) DOM
130 * implementation but with a custom processor.
131 *
132 * @param processor
133 * the custom processor to use.
…lines 134–615 unchanged (482 lines)

After

…lines 1–122 unchanged (122 lines)
123 */
124 public DOMOutputter() {
125 this(null, null, null);
126 }
127
128 /**
129 * This creates a new DOMOutputter which uses the default (JAXP) DOM
130 * implementation but with a custom processor.
131 *
132 * @param processor
133 * the custom processor to use.
134 * @since JDOM2
135 */
…lines 136–615 unchanged (480 lines)

Before

program
block_comment "/*-- \n\n Copyright (C) 2000-2011 Jason Hunter & Brett McLaugh"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Attribute"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "CDATA"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Comment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Content"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "DocType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Document"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Element"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "EntityRef"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "JDOMException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "ProcessingInstruction"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Text"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "adapters"
. "."
identifier "DOMAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "adapters"
. "."
identifier "JAXPDOMAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "internal"
. "."
identifier "ReflectionConstructor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
. "."
identifier "support"
. "."
identifier "AbstractDOMOutputProcessor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
. "."
identifier "support"
. "."
identifier "DOMOutputProcessor"
; ";"
block_comment "/**\n * Outputs a JDOM {@link org.jdom2.Document org.jdom2.Do"...
class_declaration
modifiers
public "public"
class "class"
identifier "DOMOutputter"
class_body
{ "{"
block_comment "/**\n\t * Create a final/concrete instance of the AbstractDOMO"...
class_declaration
modifiers
private "private"
static "static"
final "final"
class "class"
identifier "DefaultDOMOutputProcessor"
superclass
extends "extends"
type_identifier "AbstractDOMOutputProcessor"
class_body
{ "{"
line_comment "// add nothing except make it final."
} "}"
block_comment "/** Default adapter class */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "DOMAdapter"
variable_declarator
identifier "DEFAULT_ADAPTER"
= "="
object_creation_expression
new "new"
type_identifier "JAXPDOMAdapter"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "DOMOutputProcessor"
variable_declarator
identifier "DEFAULT_PROCESSOR"
= "="
object_creation_expression
new "new"
type_identifier "DefaultDOMOutputProcessor"
argument_list
( "("
) ")"
; ";"
block_comment "/** Adapter to use for interfacing with the DOM implementati"...
field_declaration
modifiers
private "private"
type_identifier "DOMAdapter"
variable_declarator
identifier "adapter"
; ";"
field_declaration
modifiers
private "private"
type_identifier "Format"
variable_declarator
identifier "format"
; ";"
field_declaration
modifiers
private "private"
type_identifier "DOMOutputProcessor"
variable_declarator
identifier "processor"
; ";"
block_comment "/**\n\t * This creates a new DOMOutputter which will attempt t"...
constructor_declaration (+21 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter which uses the defal"...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n\t * The complete constructor for specifying a custom DOM"...
constructor_declaration (+78 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter using the specified "...
constructor_declaration (+56 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter using the specified "...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n\t * Get the DOMAdapter currently set for this DOMOutputt"...
method_declaration
modifiers
public "public"
type_identifier "DOMAdapter"
identifier "getDOMAdapter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "adapter"
; ";"
} "}"
block_comment "/**\n\t * Set the DOMAdapter currently set for this DOMOutputt"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Get the Format instance currently used by this DOMOu"...
method_declaration
modifiers
public "public"
type_identifier "Format"
identifier "getFormat"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "format"
; ";"
} "}"
block_comment "/**\n\t * Set a new Format instance for this DOMOutputter\n\t * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n\t * Get the current DOMOutputProcessor\n\t * \n\t * @return "...
method_declaration
modifiers
public "public"
type_identifier "DOMOutputProcessor"
identifier "getDOMOutputProcessor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "processor"
; ";"
} "}"
block_comment "/**\n\t * Set a new DOMOutputProcessor for this DOMOutputter.\n"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Controls how NO_NAMESPACE nodes are handled. If true"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Deprecated"
public "public"
void_type "void"
identifier "setForceNamespaceAware"
formal_parameters
( "("
formal_parameter
boolean_type "boolean"
identifier "flag"
) ")"
block
{ "{"
line_comment "// do nothing"
} "}"
block_comment "/**\n\t * Returns whether DOMs will be constructed with namesp"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Deprecated"
public "public"
boolean_type "boolean"
identifier "getForceNamespaceAware"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
block_comment "/**\n\t * This converts the JDOM <code>Document</code> paramet"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>DocType</code> paramete"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Element</code> paramete"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Text</code> parameter t"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>CDATA</code> parameter "...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>EntityRef</code> parame"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Element</code> paramete"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Text</code> parameter t"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>CDATA</code> parameter "...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>EntityRef</code> parame"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the list of JDOM <code>Content</code> "...
method_declaration (+67 nodes collapsed)
} "}"

After

program
block_comment "/*-- \n\n Copyright (C) 2000-2011 Jason Hunter & Brett McLaugh"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Attribute"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "CDATA"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Comment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Content"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "DocType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Document"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Element"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "EntityRef"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "JDOMException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "ProcessingInstruction"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "Text"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "adapters"
. "."
identifier "DOMAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "adapters"
. "."
identifier "JAXPDOMAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "internal"
. "."
identifier "ReflectionConstructor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
. "."
identifier "support"
. "."
identifier "AbstractDOMOutputProcessor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jdom2"
. "."
identifier "output"
. "."
identifier "support"
. "."
identifier "DOMOutputProcessor"
; ";"
block_comment "/**\n * Outputs a JDOM {@link org.jdom2.Document org.jdom2.Do"...
class_declaration
modifiers
public "public"
class "class"
identifier "DOMOutputter"
class_body
{ "{"
block_comment "/**\n\t * Create a final/concrete instance of the AbstractDOMO"...
class_declaration
modifiers
private "private"
static "static"
final "final"
class "class"
identifier "DefaultDOMOutputProcessor"
superclass
extends "extends"
type_identifier "AbstractDOMOutputProcessor"
class_body
{ "{"
line_comment "// add nothing except make it final."
} "}"
block_comment "/** Default adapter class */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "DOMAdapter"
variable_declarator
identifier "DEFAULT_ADAPTER"
= "="
object_creation_expression
new "new"
type_identifier "JAXPDOMAdapter"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "DOMOutputProcessor"
variable_declarator
identifier "DEFAULT_PROCESSOR"
= "="
object_creation_expression
new "new"
type_identifier "DefaultDOMOutputProcessor"
argument_list
( "("
) ")"
; ";"
block_comment "/** Adapter to use for interfacing with the DOM implementati"...
field_declaration
modifiers
private "private"
type_identifier "DOMAdapter"
variable_declarator
identifier "adapter"
; ";"
field_declaration
modifiers
private "private"
type_identifier "Format"
variable_declarator
identifier "format"
; ";"
field_declaration
modifiers
private "private"
type_identifier "DOMOutputProcessor"
variable_declarator
identifier "processor"
; ";"
block_comment "/**\n\t * This creates a new DOMOutputter which will attempt t"...
constructor_declaration (+21 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter which uses the defau"...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n\t * The complete constructor for specifying a custom DOM"...
constructor_declaration (+78 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter using the specified "...
constructor_declaration (+56 nodes collapsed)
block_comment "/**\n\t * This creates a new DOMOutputter using the specified "...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n\t * Get the DOMAdapter currently set for this DOMOutputt"...
method_declaration
modifiers
public "public"
type_identifier "DOMAdapter"
identifier "getDOMAdapter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "adapter"
; ";"
} "}"
block_comment "/**\n\t * Set the DOMAdapter currently set for this DOMOutputt"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Get the Format instance currently used by this DOMOu"...
method_declaration
modifiers
public "public"
type_identifier "Format"
identifier "getFormat"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "format"
; ";"
} "}"
block_comment "/**\n\t * Set a new Format instance for this DOMOutputter\n\t * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n\t * Get the current DOMOutputProcessor\n\t * \n\t * @return "...
method_declaration
modifiers
public "public"
type_identifier "DOMOutputProcessor"
identifier "getDOMOutputProcessor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "processor"
; ";"
} "}"
block_comment "/**\n\t * Set a new DOMOutputProcessor for this DOMOutputter.\n"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Controls how NO_NAMESPACE nodes are handled. If true"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Deprecated"
public "public"
void_type "void"
identifier "setForceNamespaceAware"
formal_parameters
( "("
formal_parameter
boolean_type "boolean"
identifier "flag"
) ")"
block
{ "{"
line_comment "// do nothing"
} "}"
block_comment "/**\n\t * Returns whether DOMs will be constructed with namesp"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Deprecated"
public "public"
boolean_type "boolean"
identifier "getForceNamespaceAware"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
block_comment "/**\n\t * This converts the JDOM <code>Document</code> paramet"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>DocType</code> paramete"...
method_declaration (+43 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Element</code> paramete"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Text</code> parameter t"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>CDATA</code> parameter "...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>EntityRef</code> parame"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Element</code> paramete"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Text</code> parameter t"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>CDATA</code> parameter "...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>ProcessingInstruction</"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>EntityRef</code> parame"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the JDOM <code>Attribute</code> parame"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n\t * This converts the list of JDOM <code>Content</code> "...
method_declaration (+67 nodes collapsed)
} "}"