jaxx.compiler.binding
Class SimpleJAXXObjectBindingWriter

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

public class SimpleJAXXObjectBindingWriter
extends AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>

Created: 5 déc. 2009

Version:
$Revision: 1847 $

Mise a jour: $Date: 2010-04-16 14:27:48 +0200 (ven., 16 avril 2010) $ par : $Author: tchemit $

Author:
tchemit

Field Summary
protected  boolean used
           
 
Constructor Summary
SimpleJAXXObjectBindingWriter()
           
 
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
 

Field Detail

used

protected boolean used
Constructor Detail

SimpleJAXXObjectBindingWriter

public SimpleJAXXObjectBindingWriter()
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.

getConstructorParams

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

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


Copyright © 2008-2010 CodeLutin. All Rights Reserved.