Package com.github.jsonldjava.core
Class UniqueNamer
- java.lang.Object
-
- com.github.jsonldjava.core.UniqueNamer
-
class UniqueNamer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UniqueNamer(java.lang.String prefix)
Creates a new UniqueNamer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UniqueNamer
clone()
Copies this UniqueNamer.java.util.Map<java.lang.String,java.lang.String>
existing()
java.lang.String
getName()
java.lang.String
getName(java.lang.String oldName)
Gets the new name for the given old name, where if no old name is given a new name will be generated.java.lang.Boolean
isNamed(java.lang.String oldName)
-
-
-
Method Detail
-
clone
public UniqueNamer clone()
Copies this UniqueNamer.- Overrides:
clone
in classjava.lang.Object
- Returns:
- a copy of this UniqueNamer.
-
getName
public java.lang.String getName(java.lang.String oldName)
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
public java.lang.String getName()
-
isNamed
public java.lang.Boolean isNamed(java.lang.String oldName)
-
existing
public java.util.Map<java.lang.String,java.lang.String> existing()
-
-