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 UniqueNamerclone()Copies this UniqueNamer.java.util.Map<java.lang.String,java.lang.String>existing()java.lang.StringgetName()java.lang.StringgetName(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.BooleanisNamed(java.lang.String oldName)
-
-
-
Method Detail
-
clone
public UniqueNamer clone()
Copies this UniqueNamer.- Overrides:
clonein 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()
-
-