Class MarkParserSupport

    • 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 form
        expectedMarkClass - the type of marks accepted by this node
        unsupportedMarkFactory - how to make unsupported marks of the appropriate type, or null to reject them by throwing an exception
        markedNode - where to put the marks that we find