public static interface ILabelGenerator.Builder
Modifier and Type | Field and Description |
---|---|
static ILabelGenerator.Option<Boolean> |
SHOW_CLASS_NAME
If the SHOW_CLASS_NAME option is present and true, the value of object.getClass().getName()
is prefixed to the formatted description of each object.
|
static ILabelGenerator.Option<Boolean> |
SHOW_CLASS_SIMPLE_NAME
If the SHOW_CLASS_SIMPLE_NAME option is present and true, the value of object.getClass().getSimpleName()
is prefixed to the formatted description of each object.
|
static ILabelGenerator.Option<String> |
SHOW_QUALIFIER
If the SHOW_QUALIFIER option is present its value is used as a separator between a container name and a child name.
|
Modifier and Type | Method and Description |
---|---|
void |
appendObject(Object object)
Append the generated label of an object to the overall generated label.
|
void |
appendString(String string) |
void |
buildLabelFor(Object labelledObject) |
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) |
String |
toString() |
static final ILabelGenerator.Option<Boolean> SHOW_CLASS_NAME
static final ILabelGenerator.Option<Boolean> SHOW_CLASS_SIMPLE_NAME
static final ILabelGenerator.Option<String> SHOW_QUALIFIER
void appendObject(Object object)
object
- to be appended.void appendString(String string)
void buildLabelFor(Object labelledObject)
Object getLabelledObject()
<T> T getOption(ILabelGenerator.Option<T> option)
<T> boolean hasOption(ILabelGenerator.Option<T> option)
ILabelGenerator.Registry getRegistry()
<T> void setOption(ILabelGenerator.Option<T> option, T value)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.