public class SerialParameters
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SerialParameters.Standalone |
class |
SerialParameters.UseChar |
| Constructor and Description |
|---|
SerialParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCdataSectionElements(java.lang.Iterable<javax.xml.namespace.QName> v)
Set the output property
cdata-section-elements. |
void |
addCdataSectionElements(java.lang.String v,
Element scope)
Set the output property
cdata-section-elements. |
void |
addSuppressIndentation(java.lang.Iterable<javax.xml.namespace.QName> v)
Set the output property
suppress-indentation. |
void |
addSuppressIndentation(java.lang.String v,
Element scope)
Set the output property
suppress-indentation. |
void |
addUseCharacterMaps(java.lang.Iterable<SerialParameters.UseChar> v)
Set the output property
use-character-maps. |
void |
addUseCharacterMaps(java.lang.String v,
Element scope)
Set the output property
use-character-maps. |
java.lang.Boolean |
getByteOrderMark()
Get the output property
byte-order-mark. |
java.lang.Iterable<javax.xml.namespace.QName> |
getCdataSectionElements()
Get the output property
cdata-section-elements. |
java.lang.String |
getDoctypePublic()
Get the output property
doctype-public. |
java.lang.String |
getDoctypeSystem()
Get the output property
doctype-system. |
java.lang.String |
getEncoding()
Get the output property
encoding. |
java.lang.Boolean |
getEscapeUriAttributes()
Get the output property
escape-uri-attributes. |
java.lang.String |
getExtension(javax.xml.namespace.QName n)
Get an extension output property.
|
java.lang.Double |
getHtmlVersion()
Get the output property
html-version. |
java.lang.Boolean |
getIncludeContentType()
Get the output property
include-content-type. |
java.lang.Boolean |
getIndent()
Get the output property
indent. |
java.lang.String |
getItemSeparator()
Get the output property
item-separator. |
java.lang.String |
getMediaType()
Get the output property
media-type. |
javax.xml.namespace.QName |
getMethod()
Get the output property
method. |
java.lang.String |
getNormalizationForm()
Get the output property
normalization-form. |
java.lang.Boolean |
getOmitXmlDeclaration()
Get the output property
omit-xml-declaration. |
SerialParameters.Standalone |
getStandalone()
Get the output property
standalone. |
java.lang.Iterable<javax.xml.namespace.QName> |
getSuppressIndentation()
Get the output property
suppress-indentation. |
java.lang.Boolean |
getUndeclarePrefixes()
Get the output property
undeclare-prefixes. |
java.lang.Iterable<SerialParameters.UseChar> |
getUseCharacterMaps()
Get the output property
use-character-maps. |
java.lang.String |
getVersion()
Get the output property
version. |
static SerialParameters |
parse(Element elem) |
void |
setByteOrderMark(java.lang.Boolean v)
Set the output property
byte-order-mark. |
void |
setByteOrderMark(java.lang.String v)
Set the output property
byte-order-mark. |
void |
setDoctypePublic(java.lang.String v)
Set the output property
doctype-public. |
void |
setDoctypeSystem(java.lang.String v)
Set the output property
doctype-system. |
void |
setEncoding(java.lang.String v)
Set the output property
encoding. |
void |
setEscapeUriAttributes(java.lang.Boolean v)
Set the output property
escape-uri-attributes. |
void |
setEscapeUriAttributes(java.lang.String v)
Set the output property
escape-uri-attributes. |
void |
setExtension(javax.xml.namespace.QName n,
java.lang.String v)
Set an extension output property.
|
void |
setExtensionHandler(ExtensionHandler handler)
Set an extension handler.
|
void |
setHtmlVersion(java.lang.Double v)
Set the output property
html-version. |
void |
setHtmlVersion(java.lang.String v)
Set the output property
html-version. |
void |
setIncludeContentType(java.lang.Boolean v)
Set the output property
include-content-type. |
void |
setIncludeContentType(java.lang.String v)
Set the output property
include-content-type. |
void |
setIndent(java.lang.Boolean v)
Set the output property
indent. |
void |
setIndent(java.lang.String v)
Set the output property
indent. |
void |
setItemSeparator(java.lang.String v)
Set the output property
item-separator. |
void |
setMediaType(java.lang.String v)
Set the output property
media-type. |
void |
setMethod(javax.xml.namespace.QName v)
Set the output property
method. |
void |
setNormalizationForm(java.lang.String v)
Set the output property
normalization-form. |
void |
setOmitXmlDeclaration(java.lang.Boolean v)
Set the output property
omit-xml-declaration. |
void |
setOmitXmlDeclaration(java.lang.String v)
Set the output property
omit-xml-declaration. |
void |
setStandalone(SerialParameters.Standalone v)
Set the output property
standalone. |
void |
setStandalone(java.lang.String v)
Set the output property
standalone. |
void |
setUndeclarePrefixes(java.lang.Boolean v)
Set the output property
undeclare-prefixes. |
void |
setUndeclarePrefixes(java.lang.String v)
Set the output property
undeclare-prefixes. |
void |
setVersion(java.lang.String v)
Set the output property
version. |
public static SerialParameters parse(Element elem) throws ToolsException
ToolsExceptionpublic void setExtensionHandler(ExtensionHandler handler) throws ToolsException
handler - the extension handlerToolsException - if an error occurs whilst setting the handlerpublic java.lang.String getExtension(javax.xml.namespace.QName n)
throws ToolsException
n - the qualified name of the propertyToolsException - if an error occurs whilst retrieving the propertypublic void setExtension(javax.xml.namespace.QName n,
java.lang.String v)
throws ToolsException
n - the qualified name of the propertyv - the value of the propertyToolsException - if an error occurs whilst setting the propertypublic java.lang.Boolean getByteOrderMark()
byte-order-mark.public void setByteOrderMark(java.lang.Boolean v)
byte-order-mark.v - the byte-order-mark flagpublic void setByteOrderMark(java.lang.String v)
throws ToolsException
byte-order-mark.v - the byte-order-mark flagToolsException - if the string cannot be parsed correctlypublic java.lang.Iterable<javax.xml.namespace.QName> getCdataSectionElements()
cdata-section-elements.public void addCdataSectionElements(java.lang.Iterable<javax.xml.namespace.QName> v)
cdata-section-elements.v - the iterablepublic void addCdataSectionElements(java.lang.String v,
Element scope)
throws ToolsException
cdata-section-elements.v - the qualified namescope - the element scopeToolsException - if the qualified name cannot be parsed correctlypublic java.lang.String getDoctypePublic()
doctype-public.public void setDoctypePublic(java.lang.String v)
doctype-public.v - the public doc-typepublic java.lang.String getDoctypeSystem()
doctype-system.public void setDoctypeSystem(java.lang.String v)
doctype-system.v - the system doc-typepublic java.lang.String getEncoding()
encoding.public void setEncoding(java.lang.String v)
encoding.v - the encodingpublic java.lang.Boolean getEscapeUriAttributes()
escape-uri-attributes.public void setEscapeUriAttributes(java.lang.Boolean v)
escape-uri-attributes.v - the escape-uri-attributes flagpublic void setEscapeUriAttributes(java.lang.String v)
throws ToolsException
escape-uri-attributes.v - the escape-uri-attributes flagToolsException - if the string cannot be parsed correctlypublic java.lang.Double getHtmlVersion()
html-version.public void setHtmlVersion(java.lang.Double v)
html-version.v - the html versionpublic void setHtmlVersion(java.lang.String v)
throws ToolsException
html-version.v - the html versionToolsException - if the string cannot be parsed correctlypublic java.lang.Boolean getIncludeContentType()
include-content-type.public void setIncludeContentType(java.lang.Boolean v)
include-content-type.v - the include-content-type flagpublic void setIncludeContentType(java.lang.String v)
throws ToolsException
include-content-type.v - the include-content-type flagToolsException - if the string cannot be parsed correctlypublic java.lang.Boolean getIndent()
indent.public void setIndent(java.lang.Boolean v)
indent.v - the indent flagpublic void setIndent(java.lang.String v)
throws ToolsException
indent.v - the indent flagToolsException - if the string cannot be parsed correctlypublic java.lang.String getItemSeparator()
item-separator.public void setItemSeparator(java.lang.String v)
item-separator.v - the item separatorpublic java.lang.String getMediaType()
media-type.public void setMediaType(java.lang.String v)
media-type.v - the media-typepublic javax.xml.namespace.QName getMethod()
method.public void setMethod(javax.xml.namespace.QName v)
method.v - the output methodpublic java.lang.String getNormalizationForm()
normalization-form.public void setNormalizationForm(java.lang.String v)
normalization-form.v - the normalized-formpublic java.lang.Boolean getOmitXmlDeclaration()
omit-xml-declaration.public void setOmitXmlDeclaration(java.lang.Boolean v)
omit-xml-declaration.v - the omit-xml-declaration flagpublic void setOmitXmlDeclaration(java.lang.String v)
throws ToolsException
omit-xml-declaration.v - the omit-xml-declaration flagToolsException - if the string cannot be parsed correctlypublic SerialParameters.Standalone getStandalone()
standalone.public void setStandalone(SerialParameters.Standalone v)
standalone.v - standalonepublic void setStandalone(java.lang.String v)
throws ToolsException
standalone.v - standaloneToolsException - if the string cannot be parsed correctlypublic java.lang.Iterable<javax.xml.namespace.QName> getSuppressIndentation()
suppress-indentation.public void addSuppressIndentation(java.lang.Iterable<javax.xml.namespace.QName> v)
suppress-indentation.v - suppress indentation iterablepublic void addSuppressIndentation(java.lang.String v,
Element scope)
throws ToolsException
suppress-indentation.v - the qualified namescope - the element scopeToolsException - if the qualified name cannot be parsed correctlypublic java.lang.Boolean getUndeclarePrefixes()
undeclare-prefixes.public void setUndeclarePrefixes(java.lang.Boolean v)
undeclare-prefixes.v - undeclare-prefixes flagpublic void setUndeclarePrefixes(java.lang.String v)
throws ToolsException
undeclare-prefixes.v - undeclare-prefixes flagToolsException - if the string cannot be parsed correctlypublic java.lang.Iterable<SerialParameters.UseChar> getUseCharacterMaps()
use-character-maps.public void addUseCharacterMaps(java.lang.Iterable<SerialParameters.UseChar> v)
use-character-maps.v - use-character-maps iterablepublic void addUseCharacterMaps(java.lang.String v,
Element scope)
throws ToolsException
use-character-maps.v - the qualified namescope - the element scopeToolsException - if the qualified name cannot be parsed correctlypublic java.lang.String getVersion()
version.public void setVersion(java.lang.String v)
version.v - the versionCopyright © 2015-2020 EXPath. All Rights Reserved