Class NumberAnchorGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int lastAnchorId  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String nextAnchor​(Node node)
      Create a custom anchor to the provided Node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lastAnchorId

        private int lastAnchorId
    • Constructor Detail

      • NumberAnchorGenerator

        public NumberAnchorGenerator​(int lastAnchorId)
    • Method Detail

      • nextAnchor

        public java.lang.String nextAnchor​(Node node)
        Description copied from interface: AnchorGenerator
        Create a custom anchor to the provided Node
        Specified by:
        nextAnchor in interface AnchorGenerator
        Parameters:
        node - - the data to anchor
        Returns:
        value to be used in the YAML document