|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.resolver.readers.SAXCatalogReader com.sun.resolver.readers.OASISXMLCatalogReader
Parse OASIS Entity Resolution Technical Committee XML Catalog files.
Copyright © 2000, 2001 Sun Microsystems, Inc. All Rights Reserved. This software is the proprietary information of Sun Microsystems, Inc. Use is subject to license terms.
Catalog
Field Summary | |
protected java.util.Stack |
baseURIStack
|
protected Catalog |
catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it. |
static java.lang.String |
namespaceName
The namespace name of OASIS ERTC catalogs |
protected java.util.Stack |
namespaceStack
|
protected java.util.Stack |
overrideStack
|
static java.lang.String |
tr9401NamespaceName
The namespace name of OASIS ERTC TR9401 catalog extension |
Fields inherited from class com.sun.resolver.readers.SAXCatalogReader |
namespaceMap, parserClass, parserFactory |
Constructor Summary | |
OASISXMLCatalogReader()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
The SAX characters method does nothing. |
boolean |
checkAttributes(org.xml.sax.Attributes atts,
java.lang.String attName)
|
boolean |
checkAttributes(org.xml.sax.Attributes atts,
java.lang.String attName1,
java.lang.String attName2)
|
void |
endDocument()
The SAX endDocument method does nothing. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
The SAX endElement method does nothing. |
void |
endPrefixMapping(java.lang.String prefix)
The SAX endPrefixMapping method does nothing. |
Catalog |
getCatalog()
Get the current catalog. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
The SAX ignorableWhitespace method does nothing. |
protected boolean |
inExtensionNamespace()
Are we in an extension namespace? |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
The SAX processingInstruction method does nothing. |
void |
setCatalog(Catalog catalog)
Set the current catalog. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
The SAX setDocumentLocator method does nothing. |
void |
skippedEntity(java.lang.String name)
The SAX skippedEntity method does nothing. |
void |
startDocument()
The SAX startDocument method does nothing. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
The SAX startElement method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
The SAX startPrefixMapping method does nothing. |
Methods inherited from class com.sun.resolver.readers.SAXCatalogReader |
endElement, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setParserClass, setParserFactory, startElement |
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.DocumentHandler |
endElement, startElement |
Field Detail |
protected Catalog catalog
public static final java.lang.String namespaceName
public static final java.lang.String tr9401NamespaceName
protected java.util.Stack baseURIStack
protected java.util.Stack overrideStack
protected java.util.Stack namespaceStack
Constructor Detail |
public OASISXMLCatalogReader()
Method Detail |
public void setCatalog(Catalog catalog)
setCatalog
in interface SAXCatalogParser
public Catalog getCatalog()
protected boolean inExtensionNamespace()
Are we in an extension namespace?
public void setDocumentLocator(org.xml.sax.Locator locator)
The SAX setDocumentLocator
method does nothing.
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class SAXCatalogReader
public void startDocument() throws org.xml.sax.SAXException
The SAX startDocument
method does nothing.
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class SAXCatalogReader
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
The SAX endDocument
method does nothing.
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class SAXCatalogReader
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
The SAX startElement
method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them.
startElement
in interface org.xml.sax.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.
org.xml.sax.SAXException
CatalogEntry
public boolean checkAttributes(org.xml.sax.Attributes atts, java.lang.String attName)
public boolean checkAttributes(org.xml.sax.Attributes atts, java.lang.String attName1, java.lang.String attName2)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
The SAX endElement
method does nothing.
endElement
in interface org.xml.sax.ContentHandler
endElement
in class SAXCatalogReader
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
The SAX characters
method does nothing.
characters
in interface org.xml.sax.ContentHandler
characters
in class SAXCatalogReader
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
The SAX ignorableWhitespace
method does nothing.
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class SAXCatalogReader
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
The SAX processingInstruction
method does nothing.
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class SAXCatalogReader
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
The SAX skippedEntity
method does nothing.
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class SAXCatalogReader
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
The SAX startPrefixMapping
method does nothing.
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class SAXCatalogReader
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
The SAX endPrefixMapping
method does nothing.
endPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
in class SAXCatalogReader
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |