Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.services.xml.XMLParser Class Reference

List of all members.

Public Member Functions

org.xml.sax.EntityResolver getEntityResolver ()
org.xml.sax.ErrorHandler getErrorHandler ()
boolean isValidation ()
Document parseDocument (File xml) throws Exception
Document parseDocument (InputStream in) throws Exception
Document parseDocument (InputStream in, String systemID) throws Exception
Document parseDocument (String xml) throws Exception
Document parseDocument (URL url) throws Exception
Document parseDocument (XMLDOM dom) throws Exception
void setEntityResolver (org.xml.sax.EntityResolver newEntityResolver)
void setErrorHandler (org.xml.sax.ErrorHandler newErrorHandler)
void setExternalXMLSchemaReferences (String namespace, String schemaLocation)
void setValidation (boolean newValidation)

Detailed Description

XMLParser.java

Function:
XML file Parser

Author:
zhao lei
Version:
1.0
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/12/23          zhao lei       INIT
 001 2005/12/31          zhao lei       delete I_Service interface 
 


Member Function Documentation

org.xml.sax.EntityResolver org.colimas.services.xml.XMLParser.getEntityResolver  ) 
 

Returns:
org.xml.sax.EntityResolver

org.xml.sax.ErrorHandler org.colimas.services.xml.XMLParser.getErrorHandler  ) 
 

Access the ErrorHandler associated to this parser.

Returns:
org.xml.sax.ErrorHandler The ErrorHandler.

boolean org.colimas.services.xml.XMLParser.isValidation  ) 
 

Returns:
boolean

Document org.colimas.services.xml.XMLParser.parseDocument XMLDOM  dom  )  throws Exception
 

Parses an XMLDOM.

Parameters:
dom 
Returns:
Exceptions:
Exception 

Document org.colimas.services.xml.XMLParser.parseDocument URL  url  )  throws Exception
 

Parse an URL.

Document org.colimas.services.xml.XMLParser.parseDocument String  xml  )  throws Exception
 

Parses an XML string.

Returns:
org.w3c.dom.Document
Parameters:
xml java.lang.String
Exceptions:
java.lang.Exception 

Document org.colimas.services.xml.XMLParser.parseDocument InputStream  in,
String  systemID
throws Exception
 

Parses a stream with a given systemID

Returns:
org.w3c.dom.Document
Parameters:
xml java.lang.String
Exceptions:
java.lang.Exception 

Document org.colimas.services.xml.XMLParser.parseDocument InputStream  in  )  throws Exception
 

Parses an XML input stream.

Returns:
org.w3c.dom.Document
Parameters:
xml java.lang.String
Exceptions:
java.lang.Exception 

Document org.colimas.services.xml.XMLParser.parseDocument File  xml  )  throws Exception
 

Parses an XML file

Returns:
org.w3c.dom.Document
Parameters:
xml java.lang.String
Exceptions:
java.lang.Exception 

void org.colimas.services.xml.XMLParser.setEntityResolver org.xml.sax.EntityResolver  newEntityResolver  ) 
 

Parameters:
newEntityResolver org.xml.sax.EntityResolver

void org.colimas.services.xml.XMLParser.setErrorHandler org.xml.sax.ErrorHandler  newErrorHandler  ) 
 

Parameters:
newErrorHandler org.xml.sax.ErrorHandler

void org.colimas.services.xml.XMLParser.setExternalXMLSchemaReferences String  namespace,
String  schemaLocation
 

Sets necessary information to validate an XML instance against an XML Schema which location's is external.

Parameters:
namespace The target namespace associated to the schema location.
schemaLocation The location of the external schema.

void org.colimas.services.xml.XMLParser.setValidation boolean  newValidation  ) 
 

Parameters:
newValidation boolean


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:38 2006 for Colimas by  doxygen 1.4.4