Class SimpleJAXXObjectBindingWriter

java.lang.Object
jaxx.compiler.binding.writers.AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
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 - chemit@codelutin.com
  • Field Details

    • used

      protected boolean used
  • Constructor Details

    • SimpleJAXXObjectBindingWriter

      public SimpleJAXXObjectBindingWriter()
  • Method Details

    • 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 java.lang.String getConstructorParams​(DataBinding binding, DataListener[] trackers)
      Specified by:
      getConstructorParams in class AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
    • write

      public void write​(DataBinding binding, JavaFileGenerator generator, java.lang.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