|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--com.americancoders.ebXML.ebXMLHeaderParser
class to parse an ebXMLHeader.
stores all objects as defined in ebXMLHeader
requires xerces SAX parser From the apache group
package built from ebXML Messaging Service Specification
ebXML Transport, Routing & Packaging
Version 0.21d
16 October 2000
Note this specification is in development and is subject to change
This module, both source code and documentation, is in the Public
Domain, and comes with NO WARRANTY.
This program is free software; you can redistribute it and/or
modify it under the terms of the Mozilla Public License
as published by the Mozilla Software Foundation
http://www.mozilla.org/MPL
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Mozilla Public License for more details.
Constructor Summary | |
ebXMLHeaderParser()
construct the parser object from xerces -exception SAXEception is caught for setting features -exception generic Java exceptions are caught and stack is dumped to System.out |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Method declaration |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName)
Method called by the SAX parser at the |
void |
error(org.xml.sax.SAXParseException e)
catches error SAXParseExceptions this code causes exception to continue |
void |
fatalError(org.xml.sax.SAXParseException e)
catches fatal SAXParseExceptions this code causes exception to continue |
ebXMLHeader |
getebXMLHeader()
method to get the ebXMLHeader that was parsed. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
override the SAX2 ignorableWhitespace method to keep track of line numbers |
static void |
main(java.lang.String[] args)
test routine pass one arg - filename of file containing xml document |
void |
parse(java.io.File xmlFile)
method parse a file |
void |
parse(org.xml.sax.InputSource is)
method parse an InputSource |
void |
parse(java.lang.String xmlString)
method parse a XML String |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
method called for each xml element found. |
void |
warning(org.xml.sax.SAXParseException e)
catches warning SAXParseExceptions this code sends exception to stdio and allows public classto continue |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument,
endPrefixMapping,
notationDecl,
processingInstruction,
resolveEntity,
setDocumentLocator,
skippedEntity,
startDocument,
startPrefixMapping,
unparsedEntityDecl |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int _iElement
protected int _iLine
protected java.util.Stack objectStack
protected java.lang.Object currentObject
protected org.apache.xerces.parsers.SAXParser parser
private java.io.CharArrayWriter contents
protected ebXMLHeader ebXMLHeader
protected Manifest manifest
protected DocumentReference documentReference
protected ValueType documentDescription
protected ValueType documentLabel
protected ValueType documentId
protected Header header
protected TPAInfo tPAInfo
protected ValueType serviceInterface
protected ValueType action
protected ValueTypeContext tPAId
protected ValueTypeContext conversationId
protected MessageData messageData
protected ValueType refToMessageId
protected ValueType timeStamp
protected ValueType messageId
protected From from
protected To to
protected ValueTypeContext partyId
protected ReliableMessagingInfo reliableMessagingInfo
protected RoutingHeader routingHeader
protected ValueType senderURI
protected ValueType receiverURI
protected ValueType errorURI
protected java.lang.String sequenceNumber
Constructor Detail |
public ebXMLHeaderParser()
Method Detail |
public static void main(java.lang.String[] args)
public void parse(java.lang.String xmlString)
String
- contains XML text
-exception generic Java exceptions are caught and stack is dumped to System.outpublic void parse(org.xml.sax.InputSource is)
InputSource
- -exception generic Java exceptions are caught and stack is dumped to System.outpublic void parse(java.io.File xmlFile)
Java.io.File
- file containing XML text
-exception generic Java exceptions are caught and stack is dumped to System.outpublic ebXMLHeader getebXMLHeader()
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
String
- data element nameAttributeList
- attributes associated with data elementpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- start
- length
- public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
String
- name of element foundpublic void ignorableWhitespace(char[] ch, int start, int length)
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |