Interface JAXXBindingWriter<B extends JAXXBinding>

    • Method Detail

      • accept

        boolean accept​(DataBinding binding)
        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

        void write​(DataBinding binding,
                   JavaFileGenerator generator,
                   StringBuilder buffer)
        Generate the creation code of the given binding and push it in the given buffer. Note: after beean in this method, the isUsed() should always return true.
        Parameters:
        binding - the binding to use
        generator - common generator to build creation code
        buffer - where to push creation code
      • reset

        void reset()
        Reset internal states. At the moment, there is only the used property which is internal and must be reset to false for each compiler in order to know if a type of writer is used for the file.
        Since:
        2.4