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
-
-
Constructor Summary
Constructors Constructor Description NumberAnchorGenerator(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
-
-
-
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 interfaceAnchorGenerator
- Parameters:
node
- - the data to anchor- Returns:
- value to be used in the YAML document
-
-