|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.binding.DataBinding
public class DataBinding
Represents a data binding in a JAXX file. DataBinding uses
DataSource to track changes to a source expression and update
the destination.
| Field Summary | |
|---|---|
protected java.lang.String |
constantId
Constant id build from the realId and used instead of realId in generated code |
protected DataSource |
dataSource
Compiled data source |
protected java.lang.String |
initDataBinding
code to register the databinding (null if no binding) |
protected static org.apache.commons.logging.Log |
log
Logger |
protected java.util.List<JavaMethod> |
methods
Extra method to add to the binding |
protected java.lang.String |
processDataBinding
code to add to processDataBinding (null if no binding) |
| Constructor Summary | |
|---|---|
DataBinding(java.lang.String id,
java.lang.String source,
java.lang.String assignment,
boolean quickNoDependencies)
Creates a new data binding. |
|
| Method Summary | |
|---|---|
boolean |
compile(JAXXCompiler compiler)
Compiles the data binding expression. |
java.lang.String |
getAssignment()
|
java.lang.String |
getConstantId()
|
java.lang.String |
getInitDataBinding()
|
protected java.lang.String |
getInitDataBindingCode(JAXXCompiler compiler,
DataSource dataSource,
boolean isBinding)
|
java.util.List<JavaMethod> |
getMethods()
|
java.lang.String |
getProcessDataBinding()
|
protected java.lang.String |
getProcessDataBindingCode(JAXXCompiler compiler,
DataSource dataSource,
boolean isBinding)
|
java.lang.String |
getRealId()
|
java.lang.String |
getSource()
|
DataListener[] |
getTrackers()
|
boolean |
isQuickNoDependencies()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected java.lang.String constantId
realId and used instead of realId in generated code
protected DataSource dataSource
protected java.lang.String processDataBinding
protected java.lang.String initDataBinding
protected final java.util.List<JavaMethod> methods
| Constructor Detail |
|---|
public DataBinding(java.lang.String id,
java.lang.String source,
java.lang.String assignment,
boolean quickNoDependencies)
id - the data binding destination in the form id.propertyNamesource - the Java source code for the data binding expressionassignment - Java snippet which will cause the destination property to be updated with the current value of the bindingquickNoDependencies - internal flag to not treate process databinding in not a real binding| Method Detail |
|---|
public java.lang.String getAssignment()
public java.lang.String getSource()
public boolean isQuickNoDependencies()
public java.lang.String getProcessDataBinding()
public java.lang.String getInitDataBinding()
public DataListener[] getTrackers()
public java.lang.String getRealId()
public java.lang.String getConstantId()
public java.util.List<JavaMethod> getMethods()
public java.lang.String toString()
toString in class java.lang.Object
public boolean compile(JAXXCompiler compiler)
throws CompilerException
JAXXCompiler to add the Java code that performs the data
binding setup.
compiler - compiler which includes the data binding
true if the expression has dependencies, false otherwise
CompilerException - if a compilation error occurs
protected java.lang.String getInitDataBindingCode(JAXXCompiler compiler,
DataSource dataSource,
boolean isBinding)
protected java.lang.String getProcessDataBindingCode(JAXXCompiler compiler,
DataSource dataSource,
boolean isBinding)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||