public class LabelsSource
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LabelsSource() |
LabelsSource(java.util.List<java.lang.String> labels)
Build LabelsSource using externally defined list of string labels.
|
LabelsSource(java.lang.String template)
Build LabelsSource using string template.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getLabels()
This method returns the list of labels used by this generator instance.
|
int |
getNumberOfLabelsUsed()
This method returns number of labels used up to the method's call
|
int |
indexOf(java.lang.String label) |
java.lang.String |
nextLabel()
Returns next label.
|
void |
reset()
This method should be called from Iterator's reset() method, to keep labels in sync with iterator
|
int |
size() |
void |
storeLabel(java.lang.String label)
This method is intended for storing labels retrieved from external sources.
|
public LabelsSource()
public LabelsSource(@NonNull java.lang.String template)
template
- public LabelsSource(@NonNull java.util.List<java.lang.String> labels)
labels
- public int indexOf(java.lang.String label)
public int size()
public java.lang.String nextLabel()
public java.util.List<java.lang.String> getLabels()
public void storeLabel(java.lang.String label)
label
- public void reset()
public int getNumberOfLabelsUsed()