com.bowstreet.builders.webapp.methods
Class BuilderHelper

java.lang.Object
  extended by com.bowstreet.builders.webapp.methods.BuilderHelper

public class BuilderHelper
extends java.lang.Object

Base class for Helper LJO's, to get indirect reference and properties support. This is for use with the BuilderHelperUtil class.


Field Summary
static java.lang.String PROPERTIES_PROPNAME
           
 
Constructor Summary
BuilderHelper()
           
 
Method Summary
 java.lang.Object getIndirectValue(WebAppAccess webAppAccess, java.lang.String name)
          Gets an indirect value by name.
 java.lang.Object getProperty(WebAppAccess webAppAccess, java.lang.String propertyName)
          Gets a property by name.
 void setName(java.lang.String name)
          Set helper LJO name (typically taken from the builder call name).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_PROPNAME

public static final java.lang.String PROPERTIES_PROPNAME
See Also:
Constant Field Values
Constructor Detail

BuilderHelper

public BuilderHelper()
Method Detail

getIndirectValue

public java.lang.Object getIndirectValue(WebAppAccess webAppAccess,
                                         java.lang.String name)
Gets an indirect value by name. Value must have been added during regen using BuilderHelperUtil.addIndirectReference. The "name" is the one specified in that call.

Parameters:
webAppAccess - WebAppAccess object
name - The name of an indirect value you want to retrieve, as specified in BuilderHelperUtil.addIndirectReference
Returns:
The value of the indirect reference.

getProperty

public java.lang.Object getProperty(WebAppAccess webAppAccess,
                                    java.lang.String propertyName)
Gets a property by name. The property must have been set during regen using setHelperProperty. The "name" is the one specified in that call.

Parameters:
webAppAccess - WebAppAccess object
propertyName - The name of a property you want to retrieve, as specified in BuilderHelperUtil.setHelperProperty
Returns:
The property value

setName

public final void setName(java.lang.String name)
Set helper LJO name (typically taken from the builder call name). This method is called automatically by BuilderHelperUtil.

Parameters:
name - The name for the helper LJO.


Copyright © 2009 IBM. All Rights Reserved.