org.apache.xml.resolver.readers

Class OASISXMLCatalogReader

public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalogParser

Parse OASIS Entity Resolution Technical Committee XML Catalog files.

Version: 1.0

Author: Norman Walsh Norman.Walsh@Sun.COM

See Also:

Field Summary
protected StackbaseURIStack
protected Catalogcatalog
The catalog object needs to be stored by the object so that SAX callbacks can use it.
static StringnamespaceName
The namespace name of OASIS ERTC catalogs
protected StacknamespaceStack
protected StackoverrideStack
static Stringtr9401NamespaceName
The namespace name of OASIS ERTC TR9401 catalog extension
Method Summary
voidcharacters(char[] ch, int start, int length)

The SAX characters method does nothing.

booleancheckAttributes(Attributes atts, String attName)
booleancheckAttributes(Attributes atts, String attName1, String attName2)
voidendDocument()

The SAX endDocument method does nothing.

voidendElement(String namespaceURI, String localName, String qName)

The SAX endElement method does nothing.

voidendPrefixMapping(String prefix)

The SAX endPrefixMapping method does nothing.

CataloggetCatalog()
Get the current catalog.
voidignorableWhitespace(char[] ch, int start, int length)

The SAX ignorableWhitespace method does nothing.

protected booleaninExtensionNamespace()

Are we in an extension namespace?

voidprocessingInstruction(String target, String data)

The SAX processingInstruction method does nothing.

voidsetCatalog(Catalog catalog)
Set the current catalog.
voidsetDocumentLocator(Locator locator)

The SAX setDocumentLocator method does nothing.

voidskippedEntity(String name)

The SAX skippedEntity method does nothing.

voidstartDocument()

The SAX startDocument method does nothing.

voidstartElement(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.

voidstartPrefixMapping(String prefix, String uri)

The SAX startPrefixMapping method does nothing.

Field Detail

baseURIStack

protected Stack baseURIStack

catalog

protected Catalog catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it.

namespaceName

public static final String namespaceName
The namespace name of OASIS ERTC catalogs

namespaceStack

protected Stack namespaceStack

overrideStack

protected Stack overrideStack

tr9401NamespaceName

public static final String tr9401NamespaceName
The namespace name of OASIS ERTC TR9401 catalog extension

Method Detail

characters

public void characters(char[] ch, int start, int length)

The SAX characters method does nothing.

checkAttributes

public boolean checkAttributes(Attributes atts, String attName)

checkAttributes

public boolean checkAttributes(Attributes atts, String attName1, String attName2)

endDocument

public void endDocument()

The SAX endDocument method does nothing.

endElement

public void endElement(String namespaceURI, String localName, String qName)

The SAX endElement method does nothing.

endPrefixMapping

public void endPrefixMapping(String prefix)

The SAX endPrefixMapping method does nothing.

getCatalog

public Catalog getCatalog()
Get the current catalog.

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)

The SAX ignorableWhitespace method does nothing.

inExtensionNamespace

protected boolean inExtensionNamespace()

Are we in an extension namespace?

UNKNOWN: true if the current stack of open namespaces includes an extension namespace.

processingInstruction

public void processingInstruction(String target, String data)

The SAX processingInstruction method does nothing.

setCatalog

public void setCatalog(Catalog catalog)
Set the current catalog.

setDocumentLocator

public void setDocumentLocator(Locator locator)

The SAX setDocumentLocator method does nothing.

skippedEntity

public void skippedEntity(String name)

The SAX skippedEntity method does nothing.

startDocument

public void startDocument()

The SAX startDocument method does nothing.

startElement

public 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.

Parameters: 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.

See Also: CatalogEntry

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)

The SAX startPrefixMapping method does nothing.

Copyright B) 2001 Apache. All Rights Reserved.