org.eclipse.ocl.examples.common.label
Class AbstractLabelGeneratorBuilder
java.lang.Object
org.eclipse.ocl.examples.common.label.AbstractLabelGeneratorBuilder
- All Implemented Interfaces:
- ILabelGenerator.Builder
- Direct Known Subclasses:
- DefaultLabelGeneratorBuilder
public abstract class AbstractLabelGeneratorBuilder
- extends java.lang.Object
- implements ILabelGenerator.Builder
AbstractLabelGeneratorBuilder builds the formatted description on behalf of a
ILabelGenerator.Builder.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registry
protected final ILabelGenerator.Registry registry
options
protected java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options
AbstractLabelGeneratorBuilder
protected AbstractLabelGeneratorBuilder(ILabelGenerator.Registry registry,
java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
appendObject
public void appendObject(java.lang.Object object)
- Description copied from interface:
ILabelGenerator.Builder
- Append the generated label of an object to the overall generated label.
- Specified by:
appendObject
in interface ILabelGenerator.Builder
- Parameters:
object
- to be appended.
buildLabelFor
public void buildLabelFor(java.lang.Object object)
- Specified by:
buildLabelFor
in interface ILabelGenerator.Builder
getOption
public <T> T getOption(ILabelGenerator.Option<T> option)
- Specified by:
getOption
in interface ILabelGenerator.Builder
getRegistry
public ILabelGenerator.Registry getRegistry()
- Specified by:
getRegistry
in interface ILabelGenerator.Builder
setOption
public <T> void setOption(ILabelGenerator.Option<T> option,
T value)
- Specified by:
setOption
in interface ILabelGenerator.Builder