All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.maps.factories.MapCompiler
MapCompiler assumes that the mapping 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 map compiler.
For example, the following code creates a map from the sales.map mapping document.
// Instantiate a new map compiler and set the XMLReader.
compiler = new MapCompiler(xmlReader);
// Compile sales.map into an XMLDBMSMap object.
map = compiler.compile(new InputSource(new FileReader("sales.map")));
public MapCompiler(XMLReader xmlReader) throws SAXException
public XMLDBMSMap compile(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