org.eclipse.ocl.examples.common.label
Class DefaultLabelGeneratorBuilder

java.lang.Object
  extended by org.eclipse.ocl.examples.common.label.AbstractLabelGeneratorBuilder
      extended by org.eclipse.ocl.examples.common.label.DefaultLabelGeneratorBuilder
All Implemented Interfaces:
ILabelGenerator.Builder

public class DefaultLabelGeneratorBuilder
extends AbstractLabelGeneratorBuilder

DefaultLabelGeneratorBuilder builds the label on behalf of a ILabelGenerator.Registry using a StringBuilder.


Field Summary
protected  java.lang.StringBuilder s
           
 
Fields inherited from class org.eclipse.ocl.examples.common.label.AbstractLabelGeneratorBuilder
labelledObject, options, registry
 
Fields inherited from interface org.eclipse.ocl.examples.common.label.ILabelGenerator.Builder
SHOW_CLASS_NAME, SHOW_CLASS_SIMPLE_NAME, SHOW_QUALIFIER
 
Constructor Summary
DefaultLabelGeneratorBuilder(ILabelGenerator.Registry registry, java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
          Deprecated. 
DefaultLabelGeneratorBuilder(ILabelGenerator.Registry registry, java.lang.Object labelledObject, java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
           
 
Method Summary
 void appendString(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.common.label.AbstractLabelGeneratorBuilder
appendObject, buildLabelFor, getLabelledObject, getOption, getRegistry, hasOption, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

@NonNull
protected final java.lang.StringBuilder s
Constructor Detail

DefaultLabelGeneratorBuilder

@Deprecated
public DefaultLabelGeneratorBuilder(@NonNull
                                               ILabelGenerator.Registry registry,
                                               @Nullable
                                               java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
Deprecated. 


DefaultLabelGeneratorBuilder

public DefaultLabelGeneratorBuilder(@NonNull
                                    ILabelGenerator.Registry registry,
                                    @Nullable
                                    java.lang.Object labelledObject,
                                    @Nullable
                                    java.util.Map<ILabelGenerator.Option<?>,java.lang.Object> options)
Method Detail

appendString

public void appendString(@Nullable
                         java.lang.String string)

toString

@NonNull
public java.lang.String toString()
Specified by:
toString in interface ILabelGenerator.Builder
Specified by:
toString in class AbstractLabelGeneratorBuilder