com.force.sdk.codegen.builder
Class ForcePicklistEnumBuilder

java.lang.Object
  extended by com.force.sdk.codegen.builder.BaseBuilder<com.sforce.soap.partner.PicklistEntry>
      extended by com.force.sdk.codegen.builder.ForcePicklistEnumBuilder

public class ForcePicklistEnumBuilder
extends BaseBuilder<com.sforce.soap.partner.PicklistEntry>

Builds Java enums from Force.com PicklistEntrys that can be included in generated source code.

Force.com PicklistEntrys describe available values for a given Force.com schema field. Such values can be directly translated into Java enum values and included in generated Java code.

Built Java enum values will be in the form:

ENUM_NAME(<active>,<defaultValue>,<label>,<value>),

Author:
Tim Kral

Field Summary
 
Fields inherited from class com.force.sdk.codegen.builder.BaseBuilder
builderString
 
Constructor Summary
ForcePicklistEnumBuilder(int numIndents)
          Initializes a ForcePicklistEnumBuilder with the number of intentions that should proceed each Java enum value.
 
Method Summary
 
Methods inherited from class com.force.sdk.codegen.builder.BaseBuilder
add, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForcePicklistEnumBuilder

public ForcePicklistEnumBuilder(int numIndents)
Initializes a ForcePicklistEnumBuilder with the number of intentions that should proceed each Java enum value.

Parameters:
numIndents - the number of indentations that should proceed each Java enum value


Copyright © 2011. All Rights Reserved.