Package com.github.jsonldjava.core
Class UniqueNamer
java.lang.Object
com.github.jsonldjava.core.UniqueNamer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
prefix
-
counter
private int counter -
existing
-
-
Constructor Details
-
UniqueNamer
Creates a new UniqueNamer. A UniqueNamer issues unique names, keeping track of any previously issued names.- Parameters:
prefix
- the prefix to use ('<prefix><counter>').
-
-
Method Details
-
clone
Copies this UniqueNamer. -
getName
Gets the new name for the given old name, where if no old name is given a new name will be generated.- Parameters:
oldName
- the old name to get the new name for.- Returns:
- the new name.
-
getName
-
isNamed
-
existing
-