| java.lang.Object org.geotools.xml.DocumentWriter
DocumentWriter | public class DocumentWriter (Code) | | This is the thing that writes documents.
This will create valid XML documents, given an object and a schema.
author: dzwiers |
Method Summary | |
public static void | setLevel(Level l) | public static void | writeDocument(Object value, Schema schema, File f, Map hints) Write value to file using provided schema. | public static void | writeDocument(Object value, Schema schema, Writer w, Map hints) Entry Point to Document writer. | public static void | writeFragment(Object value, Schema schema, File f, Map hints) Write value to file using provided schema. | public static void | writeFragment(Object value, Schema schema, Writer w, Map hints) Entry Point to Document writer. | public static void | writeSchema(Schema schema, Writer w, Map hints) |
BASE_ELEMENT | final public static String BASE_ELEMENT(Code) | | Element or String ... include a ref to an Element to be used, or a
string representing the name of the element
|
ENCODING | final public static String ENCODING(Code) | | The Encoding which should be used for the Document which should be created.
|
SCHEMA_LOCATION_HINT | final public static String SCHEMA_LOCATION_HINT(Code) | | a map of URI->URI representing targetNamespace->Location
|
SCHEMA_ORDER | final public static String SCHEMA_ORDER(Code) | | 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
|
USE_NEAREST | final public static String USE_NEAREST(Code) | | 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.
|
WRITE_SCHEMA | final public static String WRITE_SCHEMA(Code) | | Writer ... include the key to represent true when writing to files,
include a Writer to write to otherwise.
|
setLevel | public static void setLevel(Level l)(Code) | | Sets the logger level
Parameters: l - Level |
writeDocument | public static void writeDocument(Object value, Schema schema, File f, Map hints) throws OperationNotSupportedException, IOException(Code) | | Write value to file using provided schema.
Hints:
-
WRITE_SCHEMA - (non null) write to outputfilename.xsd
-
BASE_ELEMENT - (Element) mapping of value to element instance
-
USE_NEAREST - (Boolean) not implemented
-
SCHEMA_ORDER - (String[] or Schema[]) resolve ambiguity & import
Parameters: value - Parameters: schema - Parameters: f - Parameters: hints - throws: OperationNotSupportedException - throws: IOException - |
writeDocument | public static void writeDocument(Object value, Schema schema, Writer w, Map hints) throws OperationNotSupportedException, IOException(Code) | | Entry Point to Document writer.
Hints:
-
WRITE_SCHEMA - (Writer) will be used to write the schema
-
BASE_ELEMENT - (Element) mapping of value to element instance
-
USE_NEAREST - (Boolean) not implemented
-
SCHEMA_ORDER - (String[] or Schema[]) resolve ambiguity & import
Parameters: value - Parameters: schema - Parameters: w - Parameters: hints - optional hints for writing throws: OperationNotSupportedException - throws: IOException - |
writeSchema | public static void writeSchema(Schema schema, Writer w, Map hints) throws IOException(Code) | | DOCUMENT ME!
Parameters: schema - DOCUMENT ME! Parameters: w - DOCUMENT ME! Parameters: hints - DOCUMENT ME! throws: IOException - |
|
|