|
JBoss Common Classes 2.2.17.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.xml.catalog.readers.SAXCatalogReader
org.jboss.util.xml.catalog.readers.XCatalogReader
public class XCatalogReader
Parse "xcatalog" XML Catalog files, this is the XML Catalog format developed by John Cowan and supported by Apache.
Catalog
Field Summary | |
---|---|
protected Catalog |
catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it. |
Fields inherited from class org.jboss.util.xml.catalog.readers.SAXCatalogReader |
---|
debug, namespaceMap, parserClass, parserFactory |
Constructor Summary | |
---|---|
XCatalogReader(SAXParserFactory parserFactory)
The constructor |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
The SAX characters method does nothing. |
void |
endDocument()
The SAX endDocument method does nothing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
The SAX endElement method does nothing. |
Catalog |
getCatalog()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
The SAX ignorableWhitespace method does nothing. |
void |
processingInstruction(String target,
String data)
The SAX processingInstruction method does nothing. |
void |
setCatalog(Catalog catalog)
Set the current catalog. |
void |
setDocumentLocator(Locator locator)
The SAX setDocumentLocator method does nothing. |
void |
startDocument()
The SAX startDocument method does nothing. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
The SAX startElement method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them. |
Methods inherited from class org.jboss.util.xml.catalog.readers.SAXCatalogReader |
---|
endElement, endPrefixMapping, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setParserClass, setParserFactory, skippedEntity, startElement, startPrefixMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
endPrefixMapping, skippedEntity, startPrefixMapping |
Methods inherited from interface org.xml.sax.DocumentHandler |
---|
endElement, startElement |
Field Detail |
---|
protected Catalog catalog
Constructor Detail |
---|
public XCatalogReader(SAXParserFactory parserFactory)
parserFactory
- Method Detail |
---|
public void setCatalog(Catalog catalog)
setCatalog
in interface SAXCatalogParser
public Catalog getCatalog()
public void setDocumentLocator(Locator locator)
setDocumentLocator
method does nothing.
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in interface DocumentHandler
setDocumentLocator
in class SAXCatalogReader
public void startDocument() throws SAXException
startDocument
method does nothing.
startDocument
in interface ContentHandler
startDocument
in interface DocumentHandler
startDocument
in class SAXCatalogReader
SAXException
public void endDocument() throws SAXException
endDocument
method does nothing.
endDocument
in interface ContentHandler
endDocument
in interface DocumentHandler
endDocument
in class SAXCatalogReader
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them.
startElement
in interface ContentHandler
startElement
in class SAXCatalogReader
namespaceURI
- The namespace name of the element.localName
- The local name of the element.qName
- The QName of the element.atts
- The list of attributes on the element.
SAXException
CatalogEntry
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
method does nothing.
endElement
in interface ContentHandler
endElement
in class SAXCatalogReader
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
method does nothing.
characters
in interface ContentHandler
characters
in interface DocumentHandler
characters
in class SAXCatalogReader
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
method does nothing.
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in interface DocumentHandler
ignorableWhitespace
in class SAXCatalogReader
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
method does nothing.
processingInstruction
in interface ContentHandler
processingInstruction
in interface DocumentHandler
processingInstruction
in class SAXCatalogReader
SAXException
|
JBoss Common Classes 2.2.17.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |