All Packages Class Hierarchy This Package Previous Next Index
Class de.tudarmstadt.ito.schemas.converters.DDMLToDTD
java.lang.Object
|
+----org.xml.sax.HandlerBase
|
+----de.tudarmstadt.ito.schemas.converters.DDMLToDTD
- public class DDMLToDTD
- extends HandlerBase
Convert a DDML document to a DTD object.
- Version:
- 1.01
- Author:
- Ronald Bourret, Technical University of Darmstadt
-
DDMLToDTD()
- Create a new DDMLToDTD object.
-
DDMLToDTD(Parser)
- Create a new DDMLToDTD object and set the SAX Parser.
-
characters(char[], int, int)
- Implementation of characters in SAX' DocumentHandler interface.
-
convert(InputSource)
- Convert the DDML document to a DTD object.
-
convert(Parser, InputSource)
- Set the SAX parser, then convert the DDML document to a DTD object.
-
endDocument()
- Implementation of endDocument in SAX' DocumentHandler interface.
-
endElement(String)
- Implementation of endElement in SAX' DocumentHandler interface.
-
getParser()
- Get the current SAX Parser.
-
setParser(Parser)
- Set the current SAX Parser.
-
startDocument()
- Implementation of startDocument in SAX' DocumentHandler interface.
-
startElement(String, AttributeList)
- Implementation of startElement in SAX' DocumentHandler interface.
DDMLToDTD
public DDMLToDTD()
- Create a new DDMLToDTD object.
DDMLToDTD
public DDMLToDTD(Parser parser)
- Create a new DDMLToDTD object and set the SAX Parser.
getParser
public Parser getParser()
- Get the current SAX Parser.
- Returns:
- The current SAX Parser.
setParser
public void setParser(Parser parser)
- Set the current SAX Parser.
- Parameters:
- parser - The current SAX Parser.
convert
public DTD convert(Parser parser,
InputSource src) throws SAXException, IOException
- Set the SAX parser, then convert the DDML document to a DTD object.
- Parameters:
- parser - The current SAX Parser.
- src - A SAX InputSource for the DDML document.
- Returns:
- A DTD object.
convert
public DTD convert(InputSource src) throws SAXException, IOException
- Convert the DDML document to a DTD object.
- Parameters:
- src - A SAX InputSource for the DDML document.
- Returns:
- A DTD object.
startDocument
public void startDocument() throws SAXException
- Implementation of startDocument in SAX' DocumentHandler interface.
This method is called by the SAX Parser and should not be called by
programmers using DDMLToDTD.
- Overrides:
- startDocument in class HandlerBase
startElement
public void startElement(String name,
AttributeList attrs) throws SAXException
- Implementation of startElement in SAX' DocumentHandler interface.
This method is called by the SAX Parser and should not be called by
programmers using DDMLToDTD.
- Overrides:
- startElement in class HandlerBase
endElement
public void endElement(String name) throws SAXException
- Implementation of endElement in SAX' DocumentHandler interface.
This method is called by the SAX Parser and should not be called by
programmers using DDMLToDTD.
- Overrides:
- endElement in class HandlerBase
characters
public void characters(char ch[],
int start,
int length) throws SAXException
- Implementation of characters in SAX' DocumentHandler interface.
This method is called by the SAX Parser and should not be called by
programmers using DDMLToDTD.
- Overrides:
- characters in class HandlerBase
endDocument
public void endDocument() throws SAXException
- Implementation of endDocument in SAX' DocumentHandler interface.
This method is called by the SAX Parser and should not be called by
programmers using DDMLToDTD.
- Overrides:
- endDocument in class HandlerBase
All Packages Class Hierarchy This Package Previous Next Index