SerializationSpecifier that can be used for some of the utility
methods in MathMLUtilities.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private boolean | |
| private int | |
| private boolean | |
| private SerializationMethod | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public String | getDoctypePublic()
Implements uk. Gets the public identifier to use in the resulting DOCTYPE declaration,
as described in |
| public String | getDoctypeSystem()
Implements uk. Gets the system identifier to use in the resulting DOCTYPE declaration,
as described in |
| public String | getEncoding()
Implements uk. Gets the encoding for the resulting serialized XML. |
| public int | getIndent()
Implements uk. Returns the indentation level to use when |
| public SerializationMethod | getSerializationMethod()
Implements uk. Gets the |
| public boolean | isIncludingXMLDeclaration()
Implements uk. Gets whether to include an XML declaration on the resulting output. |
| public boolean | isIndenting()
Implements uk. Returns whether the resulting XML will be indented or not. |
| public boolean | isUsingNamedEntities()
Implements uk. Returns whether to use named entities for certain MathML symbols rather than numeric character references. |
| public void | setDoctypePublic(String
public identifier to use, null for no identifier. doctypePublic)Implements uk. Sets the public identifier to use in the resulting DOCTYPE declaration,
as described in |
| public void | setDoctypeSystem(String
system identifier to use, null for no identifier. doctypeSystem)Implements uk. Sets the system identifier to use in the resulting DOCTYPE declaration,
as described in |
| public void | setEncoding(String
encoding to use, which must be non-null and recognised by the XSLT
encoding)TransformerFactory that will end up doing the serialization.Implements uk. Sets the encoding for the resulting serialized XML. |
| public void | setIncludingXMLDeclaration(boolean
true to include an XML declaration, false otherwise. includingXMLDeclaration)Implements uk. Sets whether to include an XML declaration on the resulting output. |
| public void | setIndent(int indent)
Implements uk. Sets the indentation level to use when |
| public void | setIndenting(boolean
true to indent, false otherwise. indenting)Implements uk. Sets whether the resulting XML will be indented or not. |
| public void | setSerializationMethod(SerializationMethod
SerializationMethod to use, which must not be null.Implements uk. Sets the |
| public void | setUsingNamedEntities(boolean
true to use named entities, false to default to using
numeric character references. usingNamedEntities)Implements uk. Sets whether to use named entities for certain MathML symbols rather than numeric character references. |
| public String |
| doctypePublic | back to summary |
|---|---|
| private String doctypePublic | |
| doctypeSystem | back to summary |
|---|---|
| private String doctypeSystem | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| includingXMLDeclaration | back to summary |
|---|---|
| private boolean includingXMLDeclaration | |
| indent | back to summary |
|---|---|
| private int indent | |
| indenting | back to summary |
|---|---|
| private boolean indenting | |
| serializationMethod | back to summary |
|---|---|
| private SerializationMethod serializationMethod | |
| usingNamedEntities | back to summary |
|---|---|
| private boolean usingNamedEntities | |
| SerializationOptions | back to summary |
|---|---|
| public SerializationOptions() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getDoctypePublic | back to summary |
|---|---|
| public String getDoctypePublic() Implements uk. Gets the public identifier to use in the resulting DOCTYPE declaration,
as described in Default is null | |
| getDoctypeSystem | back to summary |
|---|---|
| public String getDoctypeSystem() Implements uk. Gets the system identifier to use in the resulting DOCTYPE declaration,
as described in Default is null | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Implements uk. Gets the encoding for the resulting serialized XML.
Default is | |
| getIndent | back to summary |
|---|---|
| public int getIndent() Implements uk. Returns the indentation level to use when
This must be a non-negative integer.
The default value is
| |
| getSerializationMethod | back to summary |
|---|---|
| public SerializationMethod getSerializationMethod() Implements uk. Gets the
Default is
Note that | |
| isIncludingXMLDeclaration | back to summary |
|---|---|
| public boolean isIncludingXMLDeclaration() Implements uk. Gets whether to include an XML declaration on the resulting output. Default is false. | |
| isIndenting | back to summary |
|---|---|
| public boolean isIndenting() Implements uk. Returns whether the resulting XML will be indented or not. (This depends on how clever the underlying XSLT engine will be!) Default is false. | |
| isUsingNamedEntities | back to summary |
|---|---|
| public boolean isUsingNamedEntities() Implements uk. Returns whether to use named entities for certain MathML symbols rather than numeric character references. Default is false. | |
| setDoctypePublic | back to summary |
|---|---|
| public void setDoctypePublic(String doctypePublic) Implements uk. Sets the public identifier to use in the resulting DOCTYPE declaration,
as described in
| |
| setDoctypeSystem | back to summary |
|---|---|
| public void setDoctypeSystem(String doctypeSystem) Implements uk. Sets the system identifier to use in the resulting DOCTYPE declaration,
as described in
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Implements uk. Sets the encoding for the resulting serialized XML. Must not be null.
| |
| setIncludingXMLDeclaration | back to summary |
|---|---|
| public void setIncludingXMLDeclaration(boolean includingXMLDeclaration) Implements uk. Sets whether to include an XML declaration on the resulting output.
| |
| setIndent | back to summary |
|---|---|
| public void setIndent(int indent) Implements uk. Sets the indentation level to use when
This must be a non-negative integer.
The default value is
| |
| setIndenting | back to summary |
|---|---|
| public void setIndenting(boolean indenting) Implements uk. Sets whether the resulting XML will be indented or not. (This depends on how clever the underlying XSLT engine will be!)
| |
| setSerializationMethod | back to summary |
|---|---|
| public void setSerializationMethod(SerializationMethod serializationMethod) Implements uk. Sets the
Note that
| |
| setUsingNamedEntities | back to summary |
|---|---|
| public void setUsingNamedEntities(boolean usingNamedEntities) Implements uk. Sets whether to use named entities for certain MathML symbols rather than numeric character references. Note that this requires an XSLT 2.0-compliant engine (e.g. Saxon, which is in the "full" SnuggleTeX distribution). This option will be silently ignored if you are using an XSLT 1.0 engine, such as the one which typically comes bundled with your JDK. (Also note that the resulting XML won't be parseable unless accompanied with a DTD defining the MathML entities!)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |