Interface IXmlWritingContext

    • Method Detail

      • writeDefinitionValue

        void writeDefinitionValue​(@NonNull
                                  IClassBinding targetDefinition,
                                  @NonNull
                                  Object targetObject,
                                  @NonNull
                                  QName parentName)
                           throws IOException
        Write the data described by the provided targetDefinition as an XML element.
        Parameters:
        targetDefinition - the bound Module definition describing the structure of the XML data to write
        targetObject - the Java object data to write
        parentName - the qualified name of the XML element to write
        Throws:
        IOException - if an error occurred while writing the XML
      • writeInstanceValue

        void writeInstanceValue​(@NonNull
                                IBoundNamedModelInstance targetInstance,
                                @NonNull
                                Object targetObject,
                                @NonNull
                                QName parentName)
                         throws IOException
        Write the data described by the provided targetDefinition as an XML element.
        Parameters:
        targetInstance - the model instance that describes the syntax of the data to write
        targetObject - the Java object data to write
        parentName - the qualified name of the XML element to write
        Throws:
        IOException - if an error occurred while writing the XML