Class NumberAnchorGenerator
java.lang.Object
org.snakeyaml.engine.v2.serializer.NumberAnchorGenerator
- All Implemented Interfaces:
AnchorGenerator
Simple generate of the format id + number
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lastAnchorId
private int lastAnchorId
-
-
Constructor Details
-
NumberAnchorGenerator
public NumberAnchorGenerator(int lastAnchorId) Create- Parameters:
lastAnchorId
- - the number to start from
-
-
Method Details
-
nextAnchor
Create value increasing the number- Specified by:
nextAnchor
in interfaceAnchorGenerator
- Parameters:
node
- - ignored- Returns:
- value with format 'id001'
-