|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ILabelGenerator.Builder
An ILabelGenerator.Builder (typically realised by a StringBuilder) builds the generated label. The formatting may have options.
Field Summary | |
---|---|
static ILabelGenerator.Option<java.lang.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<java.lang.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. |
Method Summary | ||
---|---|---|
void |
appendObject(java.lang.Object object)
Append the generated label of an object to the overall generated label. |
|
void |
appendString(java.lang.String string)
|
|
void |
buildLabelFor(java.lang.Object labelledObject)
|
|
|
getOption(ILabelGenerator.Option<T> option)
|
|
ILabelGenerator.Registry |
getRegistry()
|
|
|
setOption(ILabelGenerator.Option<T> option,
T value)
|
Field Detail |
---|
static final ILabelGenerator.Option<java.lang.Boolean> SHOW_CLASS_NAME
static final ILabelGenerator.Option<java.lang.Boolean> SHOW_CLASS_SIMPLE_NAME
Method Detail |
---|
void appendObject(java.lang.Object object)
object
- to be appended.void appendString(java.lang.String string)
void buildLabelFor(java.lang.Object labelledObject)
<T> T getOption(ILabelGenerator.Option<T> option)
ILabelGenerator.Registry getRegistry()
<T> void setOption(ILabelGenerator.Option<T> option, T value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |