public MethodDeclaration addCompositeEntity( String type, String componentType, boolean isOrdered, boolean isByReference) { addSwitchCase(getMethodSwitch("wEntity"), type, BuilderConstants.buildName(type)); addSwitchCase(getMethodSwitch("wEntity_"), type, BuilderConstants.startBuildName(type)); addSwitchCase( getCompositeMethodSwitch("wEntity_"), type, BuilderConstants.startBuildName(type), "initialCapacity"); addSwitchCase(getMethodSwitch("_wEntity"), type, BuilderConstants.endBuildName(type)); return null; }
public MethodDeclaration addSimpleEntity(String type) { addSwitchCase(getMethodSwitch("wEntity"), type, BuilderConstants.buildName(type)); addSwitchCase(getMethodSwitch("wEntity_"), type, BuilderConstants.startBuildName(type)); addSwitchCase(getMethodSwitch("_wEntity"), type, BuilderConstants.endBuildName(type)); return null; }