|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader
com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader
public class OASISXMLCatalogReader
Parse OASIS Entity Resolution Technical Committee XML Catalog files.
Catalog| Field Summary | |
|---|---|
protected Stack |
baseURIStack
|
protected Catalog |
catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it. |
static String |
namespaceName
The namespace name of OASIS ERTC catalogs |
protected Stack |
namespaceStack
|
protected Stack |
overrideStack
|
static String |
tr9401NamespaceName
The namespace name of OASIS ERTC TR9401 catalog extension |
| Fields inherited from class com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader |
|---|
debug, namespaceMap, parserClass, parserFactory |
| Constructor Summary | |
|---|---|
OASISXMLCatalogReader()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
The SAX characters method does nothing. |
boolean |
checkAttributes(Attributes atts,
String attName)
|
boolean |
checkAttributes(Attributes atts,
String attName1,
String attName2)
|
void |
endDocument()
The SAX endDocument method does nothing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
The SAX endElement method does nothing. |
void |
endPrefixMapping(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(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 |
skippedEntity(String name)
The SAX skippedEntity 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. |
void |
startPrefixMapping(String prefix,
String uri)
The SAX startPrefixMapping method does nothing. |
| Methods inherited from class com.sun.org.apache.xml.internal.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 String namespaceName
public static final String tr9401NamespaceName
protected Stack baseURIStack
protected Stack overrideStack
protected Stack namespaceStack
| Constructor Detail |
|---|
public OASISXMLCatalogReader()
| Method Detail |
|---|
public void setCatalog(Catalog catalog)
setCatalog in interface SAXCatalogParserpublic Catalog getCatalog()
protected boolean inExtensionNamespace()
public void setDocumentLocator(Locator locator)
setDocumentLocator method does nothing.
setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandlersetDocumentLocator in class SAXCatalogReader
public void startDocument()
throws SAXException
startDocument method does nothing.
startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerstartDocument in class SAXCatalogReaderSAXException
public void endDocument()
throws SAXException
endDocument method does nothing.
endDocument in interface ContentHandlerendDocument in interface DocumentHandlerendDocument in class SAXCatalogReaderSAXException
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 ContentHandlerstartElement in class SAXCatalogReadernamespaceURI - 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.
SAXExceptionCatalogEntry
public boolean checkAttributes(Attributes atts,
String attName)
public boolean checkAttributes(Attributes atts,
String attName1,
String attName2)
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement method does nothing.
endElement in interface ContentHandlerendElement in class SAXCatalogReaderSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters method does nothing.
characters in interface ContentHandlercharacters in interface DocumentHandlercharacters in class SAXCatalogReaderSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace method does nothing.
ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerignorableWhitespace in class SAXCatalogReaderSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction method does nothing.
processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerprocessingInstruction in class SAXCatalogReaderSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity method does nothing.
skippedEntity in interface ContentHandlerskippedEntity in class SAXCatalogReaderSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping method does nothing.
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class SAXCatalogReaderSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping method does nothing.
endPrefixMapping in interface ContentHandlerendPrefixMapping in class SAXCatalogReaderSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||