public abstract class AbstractLabelGeneratorBuilder extends java.lang.Object implements ILabelGenerator.Builder
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
labelledObject |
protected java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> |
options |
protected ILabelGenerator.Registry |
registry |
SHOW_CLASS_NAME, SHOW_CLASS_SIMPLE_NAME, SHOW_QUALIFIER| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLabelGeneratorBuilder(ILabelGenerator.Registry registry,
java.lang.Object labelledObject,
java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendObject(java.lang.Object object)
Append the generated label of an object to the overall generated label.
|
void |
buildLabelFor(java.lang.Object object) |
java.lang.Object |
getLabelledObject() |
<T> T |
getOption(ILabelGenerator.Option<T> option) |
ILabelGenerator.Registry |
getRegistry() |
<T> boolean |
hasOption(ILabelGenerator.Option<T> option) |
<T> void |
setOption(ILabelGenerator.Option<T> option,
T value) |
abstract java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendStringprotected final ILabelGenerator.Registry registry
@Nullable protected final java.lang.Object labelledObject
@Nullable protected java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options
protected AbstractLabelGeneratorBuilder(ILabelGenerator.Registry registry, @Nullable java.lang.Object labelledObject, @Nullable java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
public void appendObject(@Nullable
java.lang.Object object)
ILabelGenerator.BuilderappendObject in interface ILabelGenerator.Builderobject - to be appended.public void buildLabelFor(@Nullable
java.lang.Object object)
buildLabelFor in interface ILabelGenerator.Builder@Nullable public java.lang.Object getLabelledObject()
getLabelledObject in interface ILabelGenerator.Builder@Nullable public <T> T getOption(ILabelGenerator.Option<T> option)
getOption in interface ILabelGenerator.Builder@NonNull public ILabelGenerator.Registry getRegistry()
getRegistry in interface ILabelGenerator.Builderpublic <T> boolean hasOption(ILabelGenerator.Option<T> option)
hasOption in interface ILabelGenerator.Builderpublic <T> void setOption(ILabelGenerator.Option<T> option, @Nullable T value)
setOption in interface ILabelGenerator.Builder@NonNull public abstract java.lang.String toString()
toString in interface ILabelGenerator.BuildertoString in class java.lang.Object