|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.builders.webapp.methods.BuilderHelperUtil
public class BuilderHelperUtil
Builder helper utility class. Use this to create a helper LJO with support for indirect references and properties. The helper class must extend BuilderHelper.
Constructor Summary | |
---|---|
BuilderHelperUtil(WebApp webApp,
java.lang.String helperName,
java.lang.String className,
BuilderInputs builderInputs)
Constructor - This is used by builder during regen. |
Method Summary | |
---|---|
void |
addIndirectReference(java.lang.String name,
java.lang.String runtimeType)
Builders can call this during regen to add indirect references that can be requested during execution (using getIndirectValue method). |
void |
addIndirectReference(java.lang.String name,
java.lang.String referenceValue,
java.lang.String runtimeType)
Builders can call this during regen to add indirect references that can be requested during execution (using getIndirectValue method). |
java.lang.Object |
callReferenceResolver(WebAppAccess webAppAccess,
java.lang.String name)
Fetches an indirect value during execution. |
java.lang.Object |
getHelperProperty(java.lang.String propertyName)
Return a property value, which must have been set during regen using setHelperProperty. |
void |
phaseCompleted()
|
void |
setHelperProperty(java.lang.String propertyName)
Initializes a property in the helper LJO. |
void |
setHelperProperty(java.lang.String propertyName,
java.lang.Object inputValue)
Initializes a property in the helper LJO. |
java.lang.String |
toString()
Override toString, to show generated reference resolver map in WebApp view |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BuilderHelperUtil(WebApp webApp, java.lang.String helperName, java.lang.String className, BuilderInputs builderInputs)
webApp
- The WebApp object under constructionhelperName
- The name to use for the helper LJOclassName
- The classname for the helper LJO (must extend BuilderHelper)builderInputs
- The BuilderInputs for this builder callMethod Detail |
---|
public void addIndirectReference(java.lang.String name, java.lang.String runtimeType)
name
- Name of the builder input, also used later as the argument to getIndirectValue.runtimeType
- The runtime type of the reference (e.g. String, IXml, etc.)public void addIndirectReference(java.lang.String name, java.lang.String referenceValue, java.lang.String runtimeType)
name
- Name that will be used to fetch the value (using getIndirectValue).referenceValue
- The indirect reference String input.runtimeType
- The runtime type of the reference (e.g. String, IXml, etc.)public java.lang.Object callReferenceResolver(WebAppAccess webAppAccess, java.lang.String name)
webAppAccess
- The WebAppAccessname
- The name of the indirect reference
public java.lang.Object getHelperProperty(java.lang.String propertyName)
propertyName
- The property name.
public void phaseCompleted()
phaseCompleted
in interface com.bowstreet.builders.webapp.foundation.PhaseCompleteObserver
public void setHelperProperty(java.lang.String propertyName)
propertyName
- The builder input name and property name.public void setHelperProperty(java.lang.String propertyName, java.lang.Object inputValue)
propertyName
- The property name.inputValue
- The property value.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |