Class NumberAnchorGenerator

    • Constructor Detail

      • NumberAnchorGenerator

        public NumberAnchorGenerator​(int lastAnchorId)
        Create
        Parameters:
        lastAnchorId - - the number to start from
    • Method Detail

      • nextAnchor

        public Anchor nextAnchor​(org.snakeyaml.engine.v2.nodes.Node node)
        Create the anchor name (increasing the number) or keep the one when it was already created in the node by the low level API
        Specified by:
        nextAnchor in interface AnchorGenerator
        Parameters:
        node - - the data to anchor
        Returns:
        unique anchor name or existing anchor name