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, wait
appendString
@NonNull protected final ILabelGenerator.Registry registry
@Nullable protected final java.lang.Object labelledObject
@Nullable protected java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options
protected AbstractLabelGeneratorBuilder(@NonNull 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.Builder
appendObject
in interface ILabelGenerator.Builder
object
- 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(@NonNull ILabelGenerator.Option<T> option)
getOption
in interface ILabelGenerator.Builder
@NonNull public ILabelGenerator.Registry getRegistry()
getRegistry
in interface ILabelGenerator.Builder
public <T> boolean hasOption(@NonNull ILabelGenerator.Option<T> option)
hasOption
in interface ILabelGenerator.Builder
public <T> void setOption(@NonNull ILabelGenerator.Option<T> option, @Nullable T value)
setOption
in interface ILabelGenerator.Builder
@NonNull public abstract java.lang.String toString()
toString
in interface ILabelGenerator.Builder
toString
in class java.lang.Object