com.force.sdk.codegen.builder
Class BaseBuilder<T>

java.lang.Object
  extended by com.force.sdk.codegen.builder.BaseBuilder<T>
Type Parameters:
T - the object type that is to be added to this builder (roughly, the object type to be converted into a String via this builder)
Direct Known Subclasses:
ForcePicklistEnumBuilder, JavaCommentBuilder, JPAAnnotationBuilder

public abstract class BaseBuilder<T>
extends Object

A base class for code generation builders.

Builders will build Strings that can be included in generated source code.

Author:
Tim Kral

Field Summary
protected  StringBuffer builderString
           
 
Method Summary
 void add(T item)
          Adds an object to this builder.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

builderString

protected final StringBuffer builderString
Method Detail

add

public void add(T item)
Adds an object to this builder.

Added objects will be converted into a String to be used in generated code according to the internal rules of the specific builder implementation.

Parameters:
item - the object to be added to this builder

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.