| Modifier and Type | Field and Description |
|---|---|
| public static final String | UPCONVERSION_OPTIONS_XML_LOCAL_NAME
Local name of XML container element when writing out options using
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Element | |
| public static void | appendUpConversionOptionsElement(Document
Document to append to document, Element Element that will be the parent of the resulting DOM fragment containerElement, final UpConversionOptions UpConversionOptions to write, may be null.if true, then default values for each option are written out
when not explicitly specified or if applyDefaults)UpConversionOptions is null.Writes out the given |
| public static UpConversionFailure | extractUpConversionFailure(final Element sFailElement)
Populates and returns an |
| public static List | extractUpConversionFailures(UnwrappedParallelMathMLDOM unwrappedDocument)
Extracts all of the s:fail elements within the given |
| private static void | extractUpConversionFailures(NodeList failureAnnotationContent, List<UpConversionFailure> resultBuilder)
|
| public static List | extractUpConversionFailures(Document upConvertedDocument)
Searches the given DOM |
| public static List | extractUpConversionFailures(Element startSearchElement)
Searches the given DOM |
| public static String | getErrorMessage(UpConversionFailure failure)
Returns a full error message for the given |
| public static String | getErrorMessage(String upConversionErrorCodeAsString, Object... arguments)
Returns a full error message for the given |
| public static boolean | isUpConversionFailureElement(Node node)
Checks to see whether the given DOM Node is an s:fail element. |
| private static void | walkDOM(Element searchElement, List<UpConversionFailure> resultBuilder)
Checks to see whether the given element is of the form:
|
| UPCONVERSION_OPTIONS_XML_LOCAL_NAME | back to summary |
|---|---|
| public static final String UPCONVERSION_OPTIONS_XML_LOCAL_NAME Local name of XML container element when writing out options using
| |
| UpConversionUtilities | back to summary |
|---|---|
| public UpConversionUtilities() | |
| appendSnuggleElement | back to summary |
|---|---|
| private static Element appendSnuggleElement(Document document, Element parentElement, String localName) | |
| appendUpConversionOptionsElement | back to summary |
|---|---|
| public static void appendUpConversionOptionsElement(Document document, Element containerElement, final UpConversionOptions options, final boolean applyDefaults) Writes out the given This is used internally to pass Java-specified options to the stylesheets that perform the up-conversion process and may be useful in other situations as well.
| |
| extractUpConversionFailure | back to summary |
|---|---|
| public static UpConversionFailure extractUpConversionFailure(final Element sFailElement) Populates and returns an | |
| extractUpConversionFailures | back to summary |
|---|---|
| public static List Extracts all of the s:fail elements within the given
| |
| extractUpConversionFailures | back to summary |
|---|---|
| private static void extractUpConversionFailures(NodeList failureAnnotationContent, List<UpConversionFailure> resultBuilder) | |
| extractUpConversionFailures | back to summary |
|---|---|
| public static List Searches the given DOM | |
| extractUpConversionFailures | back to summary |
|---|---|
| public static List Searches the given DOM | |
| getErrorMessage | back to summary |
|---|---|
| public static String getErrorMessage(UpConversionFailure failure) Returns a full error message for the given | |
| getErrorMessage | back to summary |
|---|---|
| public static String getErrorMessage(String upConversionErrorCodeAsString, Object... arguments) Returns a full error message for the given | |
| isUpConversionFailureElement | back to summary |
|---|---|
| public static boolean isUpConversionFailureElement(Node node) Checks to see whether the given DOM Node is an s:fail element.
| |
| walkDOM | back to summary |
|---|---|
| private static void walkDOM(Element searchElement, List<UpConversionFailure> resultBuilder) Checks to see whether the given element is of the form: <![CDATA[
<s:fail code="...">
<s:arg>...</s:arg>
...
<s:context>...</s:context>
</s:fail>
]]>
UpConversionFailure for this and adds to the result. If not,
traverses downwards recursively.
| |