Class AdvancedBehaviour
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a defaultAdvancedBehaviourobject.AdvancedBehaviour(boolean enableXinclude) Constructs anAdvancedBehaviourobject, setting whether XInclude is enabled.AdvancedBehaviour(XmlVersionDeclaration xmlVersionDeclaration) Constructs a defaultAdvancedBehaviourobject using the providedXmlVersionDeclaration.AdvancedBehaviour(String outputEncodingDeclaration) Constructs anAdvancedBehaviourobject using the provided outputEncodingDeclaration.AdvancedBehaviour(String outputEncodingDeclaration, XmlVersionDeclaration xmlVersionDeclaration, boolean enableXinclude) Constructs anAdvancedBehaviourobject with all possible parameters given. -
Method Summary
Modifier and TypeMethodDescriptionGets the character encoding output used in the XML declaration.Gets the value of the xmlVersionDeclaration.booleanGets whether XInclude is enabled.voidsetEnableXinclude(boolean value) Sets whether the parser will process xincludes.voidSets the character encoding output to use in the XML declaration.voidSets the version to use in the XML declaration.
-
Constructor Details
-
AdvancedBehaviour
public AdvancedBehaviour()Constructs a defaultAdvancedBehaviourobject. Contains parameters used to override or force specific behaviours. -
AdvancedBehaviour
Constructs anAdvancedBehaviourobject using the provided outputEncodingDeclaration. Contains parameters used to override or force specific behaviours.- Parameters:
outputEncodingDeclaration- the character encoding output used in the XML declaration.
-
AdvancedBehaviour
Constructs a defaultAdvancedBehaviourobject using the providedXmlVersionDeclaration. Contains parameters used to override or force specific behaviours.- Parameters:
xmlVersionDeclaration- the value of the xmlVersionDeclaration.
-
AdvancedBehaviour
public AdvancedBehaviour(boolean enableXinclude) Constructs anAdvancedBehaviourobject, setting whether XInclude is enabled.- Parameters:
enableXinclude- whether XInclude is enabled.
-
AdvancedBehaviour
public AdvancedBehaviour(String outputEncodingDeclaration, XmlVersionDeclaration xmlVersionDeclaration, boolean enableXinclude) Constructs anAdvancedBehaviourobject with all possible parameters given.- Parameters:
outputEncodingDeclaration- the character encoding output used in the XML declaration.xmlVersionDeclaration- the value of the xmlVersionDeclaration.enableXinclude- whether XInclude is enabled.
-
-
Method Details
-
getOutputEncodingDeclaration
Gets the character encoding output used in the XML declaration.- Returns:
- output character encoding
-
setOutputEncodingDeclaration
Sets the character encoding output to use in the XML declaration. For example, 'UTF-8', 'ISO-8859-1', 'windows-1252', and 'ascii'. Precisely which encodings are available is dependent on the specific Java or runtime environment that you use. Note that an invalid output encoding will cause an exception to be raised.
The 'system' special value is introduced; selecting it has the affect of choosing the 'B' document's character encoding.
Default:
"system"- Parameters:
value- the value to set for the outputEncodingDeclaration parameter- Throws:
IllegalArgumentException- if the value is null
-
getXmlVersionDeclaration
Gets the value of the xmlVersionDeclaration.- Returns:
- value of xmlVersionDeclaration
-
setXmlVersionDeclaration
Sets the version to use in the XML declaration.
The 'system' special value is introduced; selecting it has the affect of choosing 'B' document's xml-version (as provided by the parser).
Default:
XmlVersionDeclaration.SYSTEM- Parameters:
value- the value to set for the xmlVersionDeclaration parameter- Throws:
IllegalArgumentException- if the value is null- See Also:
-
isEnableXinclude
public boolean isEnableXinclude()Gets whether XInclude is enabled.- Returns:
- value of the enableXinclude
-
setEnableXinclude
public void setEnableXinclude(boolean value) Sets whether the parser will process xincludes.
If set to
truethe parser will process xincludes while parsing the inputs.Default:
true- Parameters:
value- the value to set for the enableXinclude parameter
-