Class NumberAnchorGenerator
- java.lang.Object
-
- org.snakeyaml.engine.v2.serializer.NumberAnchorGenerator
-
- All Implemented Interfaces:
AnchorGenerator
public class NumberAnchorGenerator extends Object implements AnchorGenerator
Simple generate of the format id + number
-
-
Constructor Summary
Constructors Constructor Description NumberAnchorGenerator(int lastAnchorId)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchornextAnchor(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
-
-
-
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:
nextAnchorin interfaceAnchorGenerator- Parameters:
node- - the data to anchor- Returns:
- unique anchor name or existing anchor name
-
-