|
||||||||
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.edi.ValidXMLEDIParser
class builds OBOE objects by parsing input string in valid xml edi format
OBOE - Open Business Objects for EDI
An EDI and XML Translator Written In Java
Copyright 1998-2000 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com
Field Summary | |
protected int |
_iElement
|
protected int |
_iLine
|
protected CompositeDE |
composite
|
protected ICompositeDEContainer |
compositeContainer
|
protected java.io.CharArrayWriter |
contents
|
protected Table |
detailTable
|
protected DataElement |
element
|
protected IDataElementContainer |
elementContainer
|
protected int |
elementCount
|
protected Table |
headerTable
|
protected TransactionSet |
parsedTransactionSet
|
protected org.apache.xerces.parsers.SAXParser |
parser
|
protected Segment |
segment
|
protected SegmentContainer |
segmentContainer
|
protected java.util.Stack |
segmentStack
|
protected Table |
summaryTable
|
protected Table |
table
|
Constructor Summary | |
ValidXMLEDIParser()
create a transaction set from input string |
Method Summary | |
static TransactionSet |
buildTransactionSet(java.lang.String inTSID)
static class method will build a transaction set based on input string and OBOE.properties defintion see OBOE.properties file to define the directory path |
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 declaration |
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 |
TransactionSet |
getTransactionSet()
returns the transaction set that was parsed |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
static void |
main(java.lang.String[] args)
static main method to test xmlparser class |
void |
parse(java.lang.String text)
parse an xml document coming in as a String |
void |
parseFile(java.lang.String filename)
parse an xml |
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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected TransactionSet parsedTransactionSet
protected int _iElement
protected int _iLine
protected Table table
protected Table headerTable
protected Table detailTable
protected Table summaryTable
protected Segment segment
protected CompositeDE composite
protected DataElement element
protected SegmentContainer segmentContainer
protected ICompositeDEContainer compositeContainer
protected IDataElementContainer elementContainer
protected java.util.Stack segmentStack
protected int elementCount
protected java.io.CharArrayWriter contents
protected org.apache.xerces.parsers.SAXParser parser
Constructor Detail |
public ValidXMLEDIParser() throws java.lang.Exception
inString
- the edi documentMethod Detail |
public void parse(java.lang.String text) throws java.lang.Exception
String
- public void parseFile(java.lang.String filename) throws java.lang.Exception
String
- - incoming file namepublic 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 endElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
name
- public void characters(char[] ch, int start, int length)
ch
- start
- length
- public 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
public static TransactionSet buildTransactionSet(java.lang.String inTSID) throws java.lang.Exception
String
- transaction idpublic static void main(java.lang.String[] args)
public TransactionSet getTransactionSet()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |