jaxx.compiler.binding
Class DefaultJAXXBindingWriter

java.lang.Object
  extended by jaxx.compiler.binding.AbstractJAXXBindingWriter<DefaultJAXXBinding>
      extended by jaxx.compiler.binding.DefaultJAXXBindingWriter
All Implemented Interfaces:
JAXXBindingWriter<DefaultJAXXBinding>

public class DefaultJAXXBindingWriter
extends AbstractJAXXBindingWriter<DefaultJAXXBinding>

Created: 5 déc. 2009

Version:
$Revision: 2118 $

Mise a jour: $Date: 2010-10-26 19:44:57 +0200 (Tue, 26 Oct 2010) $ par : $Author: tchemit $

Author:
tchemit

Field Summary
 
Fields inherited from class jaxx.compiler.binding.AbstractJAXXBindingWriter
used
 
Constructor Summary
DefaultJAXXBindingWriter()
           
 
Method Summary
 boolean accept(DataBinding binding)
          Test if a binding can be treated by the writer.
protected  String getConstructorParams(DataBinding binding, DataListener[] trackers)
           
 void write(DataBinding binding, JavaFileGenerator generator, StringBuilder buffer)
          Generate the creation code of the given binding and push it in the given buffer.
 
Methods inherited from class jaxx.compiler.binding.AbstractJAXXBindingWriter
getType, isUsed, writeInvocationMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJAXXBindingWriter

public DefaultJAXXBindingWriter()
Method Detail

accept

public boolean accept(DataBinding binding)
Description copied from interface: JAXXBindingWriter
Test if a binding can be treated by the writer.

Parameters:
binding - the binding to test
Returns:
true if this writer can be used to generate binding creation code, false otherwise.

write

public void write(DataBinding binding,
                  JavaFileGenerator generator,
                  StringBuilder buffer)
Description copied from interface: JAXXBindingWriter
Generate the creation code of the given binding and push it in the given buffer.

Note: after beean in this method, the JAXXBindingWriter.isUsed() should always return true.

Parameters:
binding - the binding to use
generator - common generator to build creation code
buffer - where to push creation code

getConstructorParams

protected String getConstructorParams(DataBinding binding,
                                      DataListener[] trackers)
Specified by:
getConstructorParams in class AbstractJAXXBindingWriter<DefaultJAXXBinding>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.