|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--examples.e2e.common.QuoteParser
QuoteParser is used to parse XML documents that
correspond to the E2E_AggregatedQPAResponse DTD. The parser
returns a java.util.List of PurchaseQuote
objects on completion of parsing. By default this class does
not validate the XML supplied via the org.xml.sax.InputSource.
Setting the system property "samples.e2e.b2b.xml.validate" will
cause this class (and POParser to validate the input XML.
POParser,
QuoteElement,
PurchaseQuote| Field Summary | |
static java.lang.String |
EMPTY_STRING
|
static java.lang.String |
VALIDATION_PROP
Setting this system property ("samples.e2e.b2b.xml.validate") to true will cause the parser to validate the XML during parsing. |
| Constructor Summary | |
QuoteParser(org.xml.sax.InputSource source)
Constructs a parser with the supplied XML. |
|
| Method Summary | |
void |
characters(char[] chars,
int start,
int length)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
endDocument()
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
endPrefixMapping(java.lang.String prefix)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
error(org.xml.sax.SAXParseException e)
Implementation of the org.xml.sax.ErrorHandler
interface. |
void |
fatalError(org.xml.sax.SAXParseException e)
Implementation of the org.xml.sax.ErrorHandler
interface. |
void |
ignorableWhitespace(char[] chars,
int start,
int length)
Implementation of the org.xml.sax.ContentHandler
interface. |
java.util.List |
parse()
Parse the XML supplied via the constructor and return a java.util.List or PurchaseQuote
objects. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
skippedEntity(java.lang.String name)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
startDocument()
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Implementation of the org.xml.sax.ContentHandler
interface. |
void |
warning(org.xml.sax.SAXParseException e)
Implementation of the org.xml.sax.ErrorHandler
interface. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String EMPTY_STRING
public static final java.lang.String VALIDATION_PROP
| Constructor Detail |
public QuoteParser(org.xml.sax.InputSource source)
source - XML org.xml.sax.InputSource.| Method Detail |
public java.util.List parse()
throws ParsingException
java.util.List or PurchaseQuote
objects. Settung the system property "samples.e2e.b2b.xml.validate"
to true will cause the class to validate the XML during parsing.
org.xml.sax.InputSource supplied is null. The list
returned may be empty.s
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void characters(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void setDocumentLocator(org.xml.sax.Locator locator)
org.xml.sax.ContentHandler
interface.
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void startDocument()
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void endDocument()
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler
interface.
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
org.xml.sax.ErrorHandler
interface.
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
org.xml.sax.ErrorHandler
interface.
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
org.xml.sax.ErrorHandler
interface.
|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||