|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FormDataProvider
This provider aims at providing the data necessary for the Makumba forms to compute its results.
Method Summary | |
---|---|
String |
computeBasePointer(MultipleKey tagKey,
PageContext pageContext)
|
DataDefinition |
getBasePointerType(AnalysableTag tag,
PageCache pageCache,
String baseObject)
Gives the type corresponding to the base object of a tag, based on its name |
FieldDefinition |
getInputTypeAtAnalysis(AnalysableTag tag,
DataDefinition dd,
String fieldName,
PageCache pageCache)
Gets the type of an input tag |
MultipleKey |
getParentListKey(AnalysableTag tag)
|
FieldDefinition |
getTypeOnEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes the type of the field based on the information collected at analysis. |
Object |
getValue(MultipleKey tagKey,
PageContext pageContext,
PageCache pageCache)
Returns the value of the currently running tag, for Input and Option tags. |
FieldDefinition |
onBasicValueEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes data at the end of BasicValueTag analysis (InputTag, OptionTag) |
void |
onBasicValueStartAnalyze(AnalysableTag tag,
boolean isNull,
MultipleKey parentFormKey,
PageCache pageCache,
String ptrExpr)
Computes data at the beginning of BasicValueTag analysis (InputTag, OptionTag) |
void |
onFormEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes data at the end of form analysis. |
void |
onFormEndTag(MultipleKey tagKey,
PageCache pageCache,
PageContext pageContext)
|
void |
onFormStartAnalyze(AnalysableTag tag,
PageCache pageCache,
String ptrExpr)
Computes data at the beginning of form analysis. |
void |
onFormStartTag(MultipleKey tagKey,
PageCache pageCache,
PageContext pageContext)
Computes data at the beginning of form runtime. |
void |
onNonQueryStartAnalyze(AnalysableTag tag,
boolean isNull,
MultipleKey parentFormKey,
PageCache pageCache,
String expr)
Computes data for analysis start in case of tags which aren't wrapped in a query context (of the kind mak:list). |
Method Detail |
---|
void onFormStartAnalyze(AnalysableTag tag, PageCache pageCache, String ptrExpr)
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current pageptrExpr
- the base pointer expressionvoid onBasicValueStartAnalyze(AnalysableTag tag, boolean isNull, MultipleKey parentFormKey, PageCache pageCache, String ptrExpr)
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current pageptrExpr
- the expression of the base pointervoid onNonQueryStartAnalyze(AnalysableTag tag, boolean isNull, MultipleKey parentFormKey, PageCache pageCache, String expr)
tag
- pageCache
- expr
- void onFormEndAnalyze(MultipleKey tagKey, PageCache pageCache)
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current pageFieldDefinition onBasicValueEndAnalyze(MultipleKey tagKey, PageCache pageCache)
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current page
FieldDefinition
corresponding to the object the tag is based onvoid onFormStartTag(MultipleKey tagKey, PageCache pageCache, PageContext pageContext) throws LogicException
tag
- the FormTag that starts runningpageCache
- the pageCache of the current pagepageContext
- the pageContext in which the form is
LogicException
void onFormEndTag(MultipleKey tagKey, PageCache pageCache, PageContext pageContext)
FieldDefinition getTypeOnEndAnalyze(MultipleKey tagKey, PageCache pageCache)
tag
- the running tagpageCache
- the pageCache of the current page
FieldDefinition
indicating the type of what we are interested inDataDefinition getBasePointerType(AnalysableTag tag, PageCache pageCache, String baseObject)
tag
- the tag for which we need to discover the tagpageCache
- the page cache of the current pagebaseObject
- the label of the object we want to discover
DataDefinition
corresponding to the type of the objectString computeBasePointer(MultipleKey tagKey, PageContext pageContext) throws LogicException
LogicException
Object getValue(MultipleKey tagKey, PageContext pageContext, PageCache pageCache) throws LogicException
tag
- the AnalysableTag that is currently runningpageCache
- the pageCache of the current page
LogicException
FieldDefinition getInputTypeAtAnalysis(AnalysableTag tag, DataDefinition dd, String fieldName, PageCache pageCache)
tag
- TODOfieldName
- the name of the field of which the type should be returnedpageCache
- the page cache of the current pagebase
- TODO
MultipleKey getParentListKey(AnalysableTag tag)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |