Class SimpleJAXXObjectBindingWriter
- java.lang.Object
-
- org.nuiton.jaxx.compiler.binding.writers.AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
-
- org.nuiton.jaxx.compiler.binding.writers.SimpleJAXXObjectBindingWriter
-
- All Implemented Interfaces:
JAXXBindingWriter<SimpleJAXXObjectBinding>
public class SimpleJAXXObjectBindingWriter extends AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
Created: 5 déc. 2009- Version:
- $Revision$ Mise a jour: $Date$ par : $Author$
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanused
-
Constructor Summary
Constructors Constructor Description SimpleJAXXObjectBindingWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(DataBinding binding)Test if a binding can be treated by the writer.protected StringgetConstructorParams(DataBinding binding, DataListener[] trackers)voidwrite(DataBinding binding, JavaFileGenerator generator, StringBuilder buffer)Generate the creation code of the givenbindingand push it in the givenbuffer.-
Methods inherited from class org.nuiton.jaxx.compiler.binding.writers.AbstractJAXXBindingWriter
getType, isUsed, reset, writeInvocationMethod
-
-
-
-
Method Detail
-
accept
public boolean accept(DataBinding binding)
Description copied from interface:JAXXBindingWriterTest if a binding can be treated by the writer.- Parameters:
binding- the binding to test- Returns:
trueif this writer can be used to generate binding creation code,falseotherwise.
-
getConstructorParams
protected String getConstructorParams(DataBinding binding, DataListener[] trackers)
- Specified by:
getConstructorParamsin classAbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
-
write
public void write(DataBinding binding, JavaFileGenerator generator, StringBuilder buffer)
Description copied from interface:JAXXBindingWriterGenerate the creation code of the givenbindingand push it in the givenbuffer. Note: after beean in this method, theJAXXBindingWriter.isUsed()should always returntrue.- Parameters:
binding- the binding to usegenerator- common generator to build creation codebuffer- where to push creation code
-
-