public class IDHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createDocID(java.lang.String prefix,
java.lang.String ending)
Returns a concatenation of qualified object name and
ending arguments combined
with an internal counter. |
static IDHelper |
instance()
Accessor to a singleton instance.
|
public static IDHelper instance()
public java.lang.String createDocID(java.lang.String prefix, java.lang.String ending)
ending
arguments combined
with an internal counter.prefix
- (if not null or trimmed and empty) prefix to start the ID with; typically, a
qualified name of an item for which to create a document identifier.ending
- (if not null or trimmed and empty) suffix to append, to enhance human readability.Copyright 2009-2016 Tatjana (Tanja) Kostic