All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.actions.ActionCompiler
Action documents specify a default action for a document, as well as per-class (per element type) actions. For more information, see actions.dtd.
ActionCompiler assumes that the action document is valid. If it is not, the class will either generate garbage or throw an exception. One way to guarantee that the document is valid is to pass a validating parser to the action compiler.
For example, the following code creates an Actions object from the sales.act action document.
// Instantiate a new action compiler and set the XMLReader. compiler = new ActionCompiler(xmlReader);
// Compile sales.act into an Actions object. actions = compiler.compile(map, new InputSource(new FileReader("sales.act")));
public ActionCompiler(XMLReader xmlReader) throws SAXException
public Actions compile(XMLDBMSMap map, InputSource src) throws XMLMiddlewareException
public void startDocument() throws SAXException
public void endDocument() throws SAXException
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
public void characters(char ch[], int start, int length) throws SAXException
public void ignorableWhitespace(char ch[], int start, int length) throws SAXException
public void processingInstruction(String target, String data) throws SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
public void endPrefixMapping(String prefix) throws SAXException
public void setDocumentLocator(Locator locator)
public void skippedEntity(String name) throws SAXException
All Packages Class Hierarchy This Package Previous Next Index