public class TemplateResolverImpl extends java.lang.Object implements TemplateResolver, java.io.Serializable
EACH_ATTR, EACH_STATUS_VAR, EACH_VAR, STATUS_ATTR, TEMPLATE_OBJECT
Constructor and Description |
---|
TemplateResolverImpl(Binder binder,
Component comp,
java.lang.String attr,
java.lang.String templateExpr,
java.util.Map<java.lang.String,java.lang.Object> templateArgs) |
Modifier and Type | Method and Description |
---|---|
void |
addTemplateTracking(Component eachComp)
Deprecated.
|
void |
addTemplateTracking(Component eachComp,
java.lang.Object eachData,
int index,
int size)
Add template tracking to component
|
protected java.lang.Object |
evaluateTemplate(Component eachComp,
java.lang.Object eachData,
int index,
int size) |
protected java.lang.Object |
evaluateTemplate(Component eachComp,
java.lang.Object eachData,
int index,
int size,
java.lang.String subType) |
java.lang.String |
getAttr() |
Binder |
getBinder() |
Component |
getComponent() |
java.lang.String |
getExpression() |
java.util.Map<java.lang.String,java.lang.Object> |
getTemplateArgs() |
protected Binding |
getTemplateBinding(Component eachComp,
java.lang.Object eachData,
int index,
int size) |
Template |
resolveTemplate(Component eachComp,
java.lang.Object eachData,
int index,
int size) |
Template |
resolveTemplate(Component eachComp,
java.lang.Object eachData,
int index,
int size,
java.lang.String subType)
Resolve the template for the component
|
java.lang.String |
toString() |
public Binder getBinder()
public Component getComponent()
public java.lang.String getExpression()
public java.util.Map<java.lang.String,java.lang.Object> getTemplateArgs()
public java.lang.String getAttr()
protected java.lang.Object evaluateTemplate(Component eachComp, java.lang.Object eachData, int index, int size)
protected java.lang.Object evaluateTemplate(Component eachComp, java.lang.Object eachData, int index, int size, java.lang.String subType)
public Template resolveTemplate(Component eachComp, java.lang.Object eachData, int index, int size)
resolveTemplate
in interface TemplateResolver
public Template resolveTemplate(Component eachComp, java.lang.Object eachData, int index, int size, java.lang.String subType)
TemplateResolver
resolveTemplate
in interface TemplateResolver
eachComp
- the template to be resolved of the componenteachData
- the data for resolverindex
- the index of eachsize
- the size of data setsubType
- the sub-type of template should be resolved@Deprecated public void addTemplateTracking(Component eachComp)
TemplateResolver
addTemplateTracking
in interface TemplateResolver
eachComp
- the component to add template trackingpublic void addTemplateTracking(Component eachComp, java.lang.Object eachData, int index, int size)
TemplateResolver
addTemplateTracking
in interface TemplateResolver
eachComp
- the template to be resolved of the componenteachData
- the data for resolverindex
- the index of eachsize
- the size of data setprotected Binding getTemplateBinding(Component eachComp, java.lang.Object eachData, int index, int size)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.