|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.xml.DocumentWriter
This is the thing that writes documents.
This will create valid XML documents, given an object and a schema.
| Field Summary | |
static java.lang.String |
BASE_ELEMENT
Element or String ... include a ref to an Element to be used, or a string representing the name of the element |
static java.util.logging.Logger |
logger
DOCUMENT ME! |
static java.lang.String |
SCHEMA_LOCATION_HINT
a map of URI->URI representing targetNamespace->Location |
static java.lang.String |
SCHEMA_ORDER
Schema[] or String[]... |
static java.lang.String |
USE_NEAREST
boolean ... include the key to use the "nearest" strategy for searching schemas. |
static java.lang.String |
WRITE_SCHEMA
Writer ... include the key to represent true when writing to files, include a Writer to write to otherwise. |
| Constructor Summary | |
DocumentWriter()
|
|
| Method Summary | |
static void |
setLevel(java.util.logging.Level l)
Sets the logger level |
static void |
writeDocument(java.lang.Object value,
Schema schema,
java.io.File f,
java.util.Map hints)
Write value to file using provided schema. |
static void |
writeDocument(java.lang.Object value,
Schema schema,
java.io.Writer w,
java.util.Map hints)
Entry Point to Document writer. |
static void |
writeFragment(java.lang.Object value,
Schema schema,
java.io.File f,
java.util.Map hints)
Write value to file using provided schema. |
static void |
writeFragment(java.lang.Object value,
Schema schema,
java.io.Writer w,
java.util.Map hints)
Entry Point to Document writer. |
static void |
writeSchema(Schema schema,
java.io.Writer w,
java.util.Map hints)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.util.logging.Logger logger
public static final java.lang.String WRITE_SCHEMA
public static final java.lang.String BASE_ELEMENT
public static final java.lang.String SCHEMA_ORDER
public static final java.lang.String USE_NEAREST
public static final java.lang.String SCHEMA_LOCATION_HINT
| Constructor Detail |
public DocumentWriter()
| Method Detail |
public static void setLevel(java.util.logging.Level l)
l - Level
public static void writeDocument(java.lang.Object value,
Schema schema,
java.io.File f,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException,
java.io.IOException
Hints:
value - schema - f - hints -
javax.naming.OperationNotSupportedException
java.io.IOException
public static void writeDocument(java.lang.Object value,
Schema schema,
java.io.Writer w,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException,
java.io.IOException
Hints:
value - schema - w - hints - optional hints for writing
javax.naming.OperationNotSupportedException
java.io.IOException
public static void writeFragment(java.lang.Object value,
Schema schema,
java.io.File f,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException,
java.io.IOException
Hints:
value - schema - f - hints -
javax.naming.OperationNotSupportedException
java.io.IOException
public static void writeFragment(java.lang.Object value,
Schema schema,
java.io.Writer w,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException,
java.io.IOException
Hints:
value - schema - w - hints - optional hints for writing
javax.naming.OperationNotSupportedException
java.io.IOException
public static void writeSchema(Schema schema,
java.io.Writer w,
java.util.Map hints)
throws java.io.IOException
schema - DOCUMENT ME!w - DOCUMENT ME!hints - DOCUMENT ME!
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||