org.geotools.xml
Class DocumentFactory

java.lang.Object
  extended byorg.geotools.xml.DocumentFactory

public class DocumentFactory
extends java.lang.Object

SchemaFactory purpose.

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

Example Use:


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

Version:
$Id: DocumentFactory.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)

Field Summary
static java.lang.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 java.lang.Object getInstance(java.io.InputStream is, java.util.Map hints, java.util.logging.Level level)
           Parses the instance data provided.
static java.lang.Object getInstance(java.net.URI desiredDocument, java.util.Map hints)
           calls getInstance(URI,Level) with Level.WARNING
static java.lang.Object getInstance(java.net.URI desiredDocument, java.util.Map hints, java.util.logging.Level level)
           Parses the instance data provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATION_HINT

public static final java.lang.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 java.lang.Object getInstance(java.net.URI desiredDocument,
                                           java.util.Map hints)
                                    throws org.xml.sax.SAXException

calls getInstance(URI,Level) with Level.WARNING

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

getInstance

public static java.lang.Object getInstance(java.net.URI desiredDocument,
                                           java.util.Map hints,
                                           java.util.logging.Level level)
                                    throws org.xml.sax.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:
org.xml.sax.SAXException

getInstance

public static java.lang.Object getInstance(java.io.InputStream is,
                                           java.util.Map hints,
                                           java.util.logging.Level level)
                                    throws org.xml.sax.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:
org.xml.sax.SAXException


Copyright © GeoTools. All Rights Reserved.