Class DocumentWriter

Object
DocumentWriter

public class DocumentWriter extends Object
This is the thing that writes documents.

This will create valid XML documents, given an object and a schema.

Author:
dzwiers
  • Field Details

    • logger

      public static final Logger logger
    • WRITE_SCHEMA

      public static final String WRITE_SCHEMA
      Writer ... include the key to represent true when writing to files, include a Writer to write to otherwise.
      See Also:
    • BASE_ELEMENT

      public static final String BASE_ELEMENT
      Element or String ... include a ref to an Element to be used, or a string representing the name of the element
      See Also:
    • SCHEMA_ORDER

      public static final String SCHEMA_ORDER
      Schema[] or String[]... The order to search the schemas for a valid element, either an array of ref to Schema instances or an Array or TargetNamespaces
      See Also:
    • ENCODING

      public static final String ENCODING
      The Encoding which should be used for the Document which should be created.
      See Also:
    • USE_NEAREST

      public static final String USE_NEAREST
      boolean ... include the key to use the "nearest" strategy for searching schemas. This will be ignored if a schema order was set. When not included the schema order as they appear in the orginal schema will be used.
      See Also:
    • SCHEMA_LOCATION_HINT

      public static final String SCHEMA_LOCATION_HINT
      a map of URI->URI representing targetNamespace->Location
      See Also:
  • Constructor Details

    • DocumentWriter

      public DocumentWriter()
  • Method Details