|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JAXXBindingWriter<B extends JAXXBinding>
The contract of a writer of JAXXBinding creation code from a
DataBinding.
| Method Summary | |
|---|---|
boolean |
accept(DataBinding binding)
Test if a binding can be treated by the writer. |
Class<B> |
getType()
|
boolean |
isUsed()
Test if the writer was at least used once (says that the method write(DataBinding, JavaFileGenerator, StringBuilder) was at least invoked once). |
void |
write(DataBinding binding,
JavaFileGenerator generator,
StringBuilder buffer)
Generate the creation code of the given binding and push it in the given buffer. |
| Method Detail |
|---|
boolean accept(DataBinding binding)
binding - the binding to test
true if this writer can be used to generate binding creation code, false otherwise.boolean isUsed()
write(DataBinding, JavaFileGenerator, StringBuilder) was at least invoked once).
true if this writer was usedClass<B> getType()
JAXXBinding to generate
void write(DataBinding binding,
JavaFileGenerator generator,
StringBuilder buffer)
binding and push it in the given buffer.
Note: after beean in this method, the isUsed() should always return true.
binding - the binding to usegenerator - common generator to build creation codebuffer - where to push creation code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||