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

org.colimas.services.xml.XMLFactory Class Reference

List of all members.

Public Member Functions

 XMLFactory (String publicID, DTD aDTD)
void collectChildren (DTDItem rootElement, DTDItem currentElement, List children) throws XMLException
Document createDOM (String rootName) throws XMLException
Element createFragment (Document dom, Element eParent, String childName) throws XMLException
void insertElement (Element eParent, Element eChild) throws XMLException

Detailed Description

XMLFactory.java

Function:
This class is used to generate XML fragments from a DTD.

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 
 


Constructor & Destructor Documentation

org.colimas.services.xml.XMLFactory.XMLFactory String  publicID,
DTD  aDTD
 

Initialization.


Member Function Documentation

void org.colimas.services.xml.XMLFactory.collectChildren DTDItem  rootElement,
DTDItem  currentElement,
List  children
throws XMLException
 

Collect the list of children of an element

Document org.colimas.services.xml.XMLFactory.createDOM String  rootName  )  throws XMLException
 

Creates a DOM from a root element.

Parameters:
rootName Root name from the DTD.
Returns:
A full XML DOM whose root is rootName and whose DOCTYPE is related to the current DTD.

Element org.colimas.services.xml.XMLFactory.createFragment Document  dom,
Element  eParent,
String  childName
throws XMLException
 

Creates a fragment of XML tree.

void org.colimas.services.xml.XMLFactory.insertElement Element  eParent,
Element  eChild
throws XMLException
 

Insert an element at the correct place according to the DTD.


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