Top Fields Constructors Methods
org.yaml.snakeyaml.serializer

public Class NumberAnchorGenerator

extends Object
implements AnchorGenerator
Class Inheritance
All Implemented Interfaces
org.yaml.snakeyaml.serializer.AnchorGenerator
Imports
java.text.NumberFormat, org.yaml.snakeyaml.nodes.Node

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
NumberAnchorGenerator(int lastAnchorId)

Method Summary

Modifier and TypeMethod and Description
public String
nextAnchor(Node
- the data to anchor
node
)

Implements org.yaml.snakeyaml.serializer.AnchorGenerator.nextAnchor.

Create a custom anchor to the provided Node
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lastAnchorIdback to summary
private int lastAnchorId

Constructor Detail

NumberAnchorGeneratorback to summary
public NumberAnchorGenerator(int lastAnchorId)

Method Detail

nextAnchorback to summary
public String nextAnchor(Node node)

Implements org.yaml.snakeyaml.serializer.AnchorGenerator.nextAnchor.

Doc from org.yaml.snakeyaml.serializer.AnchorGenerator.nextAnchor.

Create a custom anchor to the provided Node

Parameters
node:Node

- the data to anchor

Returns:String

value to be used in the YAML document