|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.resolver.readers.SAXCatalogReader
org.apache.xml.resolver.readers.OASISXMLCatalogReader
public class OASISXMLCatalogReader
Parse OASIS Entity Resolution Technical Committee XML Catalog files.
Catalog| Field Summary | |
|---|---|
static java.lang.String |
namespaceName
The namespace name of OASIS ERTC catalogs |
static java.lang.String |
tr9401NamespaceName
The namespace name of OASIS ERTC TR9401 catalog extension |
| Constructor Summary | |
|---|---|
OASISXMLCatalogReader()
Default constructor |
|
OASISXMLCatalogReader(SAXParserFactory parserFactory,
Catalog catalog)
Constructor allowing for providing custom SAX parser factory |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
The SAX characters method does nothing. |
boolean |
checkAttributes(Attributes atts,
java.lang.String attName)
|
boolean |
checkAttributes(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 |
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. |
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(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 |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
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 org.apache.xml.resolver.readers.SAXCatalogReader |
|---|
endElement, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setClassLoader, setParserClass, setParserFactory, startElement |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.DocumentHandler |
|---|
endElement, startElement |
| Field Detail |
|---|
public static final java.lang.String namespaceName
public static final java.lang.String tr9401NamespaceName
| Constructor Detail |
|---|
public OASISXMLCatalogReader()
public OASISXMLCatalogReader(SAXParserFactory parserFactory,
Catalog catalog)
| Method Detail |
|---|
public void setCatalog(Catalog catalog)
setCatalog in interface SAXCatalogParserpublic Catalog getCatalog()
public void setDocumentLocator(Locator locator)
setDocumentLocator method does nothing.
setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandlersetDocumentLocator in class SAXCatalogReaderlocator - an object that can return the location of
any SAX document eventLocator
public void startDocument()
throws SAXException
startDocument
startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerstartDocument in class SAXCatalogReaderSAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.endDocument()
public void endDocument()
throws SAXException
endDocument method does nothing.
endDocument in interface ContentHandlerendDocument in interface DocumentHandlerendDocument in class SAXCatalogReaderSAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.startDocument()
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.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.
SAXException - any SAX exception, possibly
wrapping another exceptionCatalogEntry
public boolean checkAttributes(Attributes atts,
java.lang.String attName)
public boolean checkAttributes(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 SAXException
endElement
endElement in interface ContentHandlerendElement in class SAXCatalogReadernamespaceURI - the Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performedlocalName - the local name (without prefix), or the
empty string if Namespace processing is not being
performedqName - the qualified XML name (with prefix), or the
empty string if qualified names are not available
SAXException - any SAX exception, possibly
wrapping another exception
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters method does nothing.
characters in interface ContentHandlercharacters in interface DocumentHandlercharacters in class SAXCatalogReaderch - the characters from the XML documentstart - the start position in the arraylength - the number of characters to read from the array
SAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.ignorableWhitespace(char[], int, int),
Locator
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace method does nothing.
ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerignorableWhitespace in class SAXCatalogReaderch - the characters from the XML documentstart - the start position in the arraylength - the number of characters to read from the array
SAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.characters(char[], int, int)
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws SAXException
processingInstruction method does nothing.
processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerprocessingInstruction in class SAXCatalogReadertarget - the processing instruction targetdata - the processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target
SAXException - Any SAX exception, possibly
wrapping another exception.
public void skippedEntity(java.lang.String name)
throws SAXException
skippedEntity method does nothing.
skippedEntity in interface ContentHandlerskippedEntity in class SAXCatalogReadername - the name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the string
"[dtd]"
SAXException - any SAX exception, possibly
wrapping another exception
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws SAXException
startPrefixMapping method does nothing.
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class SAXCatalogReaderprefix - the Namespace prefix being declared.
An empty string is used for the default element namespace,
which has no prefix.uri - the Namespace URI the prefix is mapped to
SAXException - the client may throw
an exception during processingContentHandler.endPrefixMapping(java.lang.String),
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endPrefixMapping(java.lang.String prefix)
throws SAXException
endPrefixMapping method does nothing.
endPrefixMapping in interface ContentHandlerendPrefixMapping in class SAXCatalogReaderprefix - the prefix that was being mapped.
This is the empty string when a default mapping scope ends.
SAXException - the client may throw
an exception during processingContentHandler.startPrefixMapping(java.lang.String, java.lang.String),
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||