|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.xml.xmi.XMIHeaderContentHandler
public class XMIHeaderContentHandler
| Constructor Summary | |
|---|---|
XMIHeaderContentHandler()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
This will report character data (within an element). |
protected void |
checkHeader()
|
void |
complete()
This method is called after the end tag for the XMI header is encountered, and allows the subclass to provide specific behavior if necessary. |
void |
endDocument()
This indicates the end of a Document parse - this occurs after all callbacks in all SAX Handlers.. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Indicates the end of an element ( </[element name]>)
is reached. |
void |
endPrefixMapping(java.lang.String prefix)
This will add the prefix mapping to the XMIHeader object. |
XMIHeader |
getHeader()
Return the XMI Header for this content handler. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Capture ignorable whitespace as text. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
This will indicate that a processing instruction (other than the XML declaration) has been encountered. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Provide reference to Locator which provides
information about where in a document callbacks occur. |
void |
skippedEntity(java.lang.String name)
This will report an entity that is skipped by the parser. |
void |
startDocument()
This indicates the start of a Document parse - this precedes all callbacks in all SAX Handlers with the sole exception of . |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
This reports the occurrence of an actual element. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
This will add the prefix mapping to the XMIHeader object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMIHeaderContentHandler()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void setDocumentLocator(org.xml.sax.Locator locator)
Locator which provides
information about where in a document callbacks occur.
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - Locator object tied to callback process
public void startDocument()
throws org.xml.sax.SAXException
setDocumentLocator(org.xml.sax.Locator).
startDocument in interface org.xml.sax.ContentHandlerSAXException - when things go wrong
org.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerSAXException - when things go wrong
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlertarget - String target of PIdata - StringThrows:
org.xml.sax.SAXException - when things go wrong
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
XMIHeader object.
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - String namespace prefix.uri - String namespace URI.
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
This will add the prefix mapping to the XMIHeader object.
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - String namespace prefix.uri - String namespace URI.
org.xml.sax.SAXException
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
xmlns:[namespace prefix] and
xsi:schemaLocation.
startElement in interface org.xml.sax.ContentHandleruri - String namespace URI this element
is associated with, or an empty StringlocalName - String name of element (with no
namespace prefix, if one is present)qName - String XML 1.0 version of element name:
[namespace prefix]:[localName]atts - Attributes list for this element
org.xml.sax.SAXException - when things go wrong
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerch - [] - char array of ignorable whitespacestart - int - starting position within arraylength - int - length of whitespace after start
org.xml.sax.SAXException - when things go wrong
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerch - char[] character array with character datastart - int index in array where data starts.length - int length of data.
org.xml.sax.SAXException - when things go wrong
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
</[element name]>)
is reached. Note that the parser does not distinguish between empty
elements and non-empty elements, so this will occur uniformly.
endElement in interface org.xml.sax.ContentHandlernamespaceURI - String URI of namespace this element is associated withlocalName - String name of element without prefixqName - String name of element in XML 1.0 form
org.xml.sax.SAXException - when things go wrong
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - String name of entity being skipped
SAXException - when things go wrong
org.xml.sax.SAXExceptionpublic XMIHeader getHeader()
public void complete()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void checkHeader()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||