Package com.atlassian.adf.model.mark
Class MarkParserSupport
- java.lang.Object
-
- com.atlassian.adf.model.mark.MarkParserSupport
-
public abstract class MarkParserSupport extends Object
- See Also:
parseMarks(Map, Class, Factory, Marked)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <M extends Mark>
voidparseMarks(Map<String,?> nodeMap, Class<M> expectedMarkClass, Factory<M> unsupportedMarkFactory, Marked<?,M> markedNode)Given a map representation of a marked node, attempts to parse any marks that are present in it.static voidparseTextMarks(Map<String,?> map, Marked<?,TextMark> node)
-
-
-
Method Detail
-
parseMarks
public static <M extends Mark> void parseMarks(Map<String,?> nodeMap, Class<M> expectedMarkClass, @Nullable Factory<M> unsupportedMarkFactory, Marked<?,M> markedNode)
Given a map representation of a marked node, attempts to parse any marks that are present in it.- Parameters:
nodeMap- the node's map formexpectedMarkClass- the type of marks accepted by this nodeunsupportedMarkFactory- how to make unsupported marks of the appropriate type, ornullto reject them by throwing an exceptionmarkedNode- where to put the marks that we find
-
-