org.geotools.xml
Class DocumentFactory

Object
  extended by DocumentFactory

public class DocumentFactory
extends Object

This is the main entry point into the XSI parsing routines.

Example Use:

     Object x = DocumentFactory.getInstance(new URI("MyInstanceDocumentURI");
 

Author:
dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)

Field Summary
static String VALIDATION_HINT
          When this hint is contained and set to Boolean.FALSE, element ordering will not be validated.
 
Constructor Summary
DocumentFactory()
           
 
Method Summary
static Object getInstance(InputStream is, Map hints, Level level)
           Parses the instance data provided.
static Object getInstance(URI desiredDocument, Map hints)
           calls getInstance(URI,Level) with Level.WARNING
static Object getInstance(URI desiredDocument, Map hints, Level level)
           Parses the instance data provided.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATION_HINT

public static final String VALIDATION_HINT
When this hint is contained and set to Boolean.FALSE, element ordering will not be validated. This key may also affect data validation within the parse routines. The inherent safety of the resulting objects is weekend by turning this param to false.

See Also:
Constant Field Values
Constructor Detail

DocumentFactory

public DocumentFactory()
Method Detail

getInstance

public static Object getInstance(URI desiredDocument,
                                 Map hints)
                          throws SAXException

calls getInstance(URI,Level) with Level.WARNING

Parameters:
desiredDocument -
hints - May be null.
Returns:
Object
Throws:
SAXException
See Also:
getInstance(URI, Map, Level)

getInstance

public static Object getInstance(URI desiredDocument,
                                 Map hints,
                                 Level level)
                          throws SAXException

Parses the instance data provided. This method assumes that the XML document is fully described using XML Schemas. Failure to be fully described as Schemas will result in errors, as opposed to a vid parse.

Parameters:
desiredDocument -
hints - May be null.
level -
Returns:
Object
Throws:
SAXException

getInstance

public static Object getInstance(InputStream is,
                                 Map hints,
                                 Level level)
                          throws SAXException

Parses the instance data provided. This method assumes that the XML document is fully described using XML Schemas. Failure to be fully described as Schemas will result in errors, as opposed to a vid parse.

Parameters:
is -
hints - May be null.
level -
Returns:
Object
Throws:
SAXException


Copyright © 1996-2014 Geotools. All Rights Reserved.