public class MessageMLParser extends Object
| Modifier and Type | Method and Description |
|---|---|
Element |
createElement(Element element,
Element parent)
Create a MessageML element based on the DOM element's name and attributes.
|
Optional<String> |
getLabel(String id)
Returns the label value corresponding to the id
(used internally during parsing)
|
void |
loadElementId(String id)
Loads the values of the "id" attribute of elements being parsed and verifies if these values are unique.
|
public Element createElement(Element element, Element parent) throws InvalidInputException
LabelableElement
that is PresentationML specific, but in MessageML is not an element, instead it is an attribute of another element)
and it should be not considered an error; in case of a real error, an exception is thrownInvalidInputExceptionpublic void loadElementId(String id) throws InvalidInputException
id - InvalidInputExceptionpublic Optional<String> getLabel(String id) throws InvalidInputException
InvalidInputExceptionCopyright © 2020 The Symphony Software Foundation. All rights reserved.