|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.xml.orderParser.StreamParser
Demonstrates the parsing of an XML document into business objects using the XMLInputStream API.
| Constructor Summary | |
StreamParser()
|
|
| Method Summary | |
java.lang.String |
getAttribute(weblogic.xml.stream.StartElement pStartElement,
java.lang.String pStr)
Extract known attribute value by name from a start element. |
weblogic.xml.stream.XMLInputStream |
getInputStream(java.lang.String pName)
Creates a new XMLInputStream. |
OrderBO |
getOrderBO()
Returns created order business object. |
void |
parse(weblogic.xml.stream.XMLInputStream pStream)
Controls the flow of the XML document's overall parsing. |
void |
processCustomer(weblogic.xml.stream.XMLInputStream pStream)
Controls the flow of the customer parsing resulting in a customer business object. |
void |
processItem(weblogic.xml.stream.XMLInputStream pStream)
Parses item data creating item business objects. |
void |
processItemList(weblogic.xml.stream.XMLInputStream pStream)
Controls the flow of items in an item list element. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public StreamParser()
| Method Detail |
public java.lang.String getAttribute(weblogic.xml.stream.StartElement pStartElement,
java.lang.String pStr)
throws weblogic.xml.stream.XMLStreamException
Extract known attribute value by name from a start element.
pStream - XML input stream.weblogic.xml.stream.XMLStreamException -
public weblogic.xml.stream.XMLInputStream getInputStream(java.lang.String pName)
throws weblogic.xml.stream.XMLStreamException,
java.io.FileNotFoundException
Creates a new XMLInputStream.
pName - Name of XML document.weblogic.xml.stream.XMLStreamException - java.io.FileNotFoundException - public OrderBO getOrderBO()
Returns created order business object.
public void parse(weblogic.xml.stream.XMLInputStream pStream)
throws java.lang.Exception,
weblogic.xml.stream.XMLStreamException
Controls the flow of the XML document's overall parsing.
pStream - XML input stream.java.lang.Exception - weblogic.xml.stream.XMLStreamException -
public void processCustomer(weblogic.xml.stream.XMLInputStream pStream)
throws weblogic.xml.stream.XMLStreamException
Controls the flow of the customer parsing resulting in a customer business object.
pStream - XML input stream.weblogic.xml.stream.XMLStreamException -
public void processItem(weblogic.xml.stream.XMLInputStream pStream)
throws weblogic.xml.stream.XMLStreamException
Parses item data creating item business objects.
pStream - XML input stream.weblogic.xml.stream.XMLStreamException -
public void processItemList(weblogic.xml.stream.XMLInputStream pStream)
throws weblogic.xml.stream.XMLStreamException
Controls the flow of items in an item list element.
pStream - XML input stream.weblogic.xml.stream.XMLStreamException -
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||