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<Map<Class<? extends SplittableElement>,Map<String,String>>> |
getAllSplittableAttributes(String id)
Returns all attributes corresponding to the id
(used internally during parsing)
|
Optional<Map<Class<? extends SplittableElement>,org.apache.commons.lang3.tuple.Pair<String,String>>> |
getAllSplittableValues(String id)
Returns all values corresponding to the id
(used internally during parsing)
|
FormatEnum |
getMessageFormat() |
Optional<Map<String,String>> |
getSplittableAttributes(String id,
Class<? extends SplittableElement> clazz)
Returns the attributes corresponding to the id for a splittable element
(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 or tooltip
element TooltipableElement) 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<Map<String,String>> getSplittableAttributes(String id, Class<? extends SplittableElement> clazz) throws InvalidInputException
InvalidInputExceptionpublic Optional<Map<Class<? extends SplittableElement>,Map<String,String>>> getAllSplittableAttributes(String id) throws InvalidInputException
InvalidInputExceptionpublic Optional<Map<Class<? extends SplittableElement>,org.apache.commons.lang3.tuple.Pair<String,String>>> getAllSplittableValues(String id) throws InvalidInputException
InvalidInputExceptionpublic FormatEnum getMessageFormat()
Copyright © 2020 The Symphony Software Foundation. All rights reserved.