Package org.yaml.snakeyaml.serializer
Class NumberAnchorGenerator
- java.lang.Object
-
- org.yaml.snakeyaml.serializer.NumberAnchorGenerator
-
- All Implemented Interfaces:
AnchorGenerator
public class NumberAnchorGenerator extends java.lang.Object implements AnchorGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private intlastAnchorId
-
Constructor Summary
Constructors Constructor Description NumberAnchorGenerator(int lastAnchorId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringnextAnchor(Node node)Create the anchor name or keep the one when it was already created in the node by the low level API
-
-
-
Method Detail
-
nextAnchor
public java.lang.String nextAnchor(Node node)
Create the anchor name 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
-
-