|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.americancoders.edi.XMLErrors
class to keep track of errors in EDI documents.
OBOE - Open Business Objects for EDI
Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2007 - 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
| Constructor Summary | |
XMLErrors()
Constructor |
|
| Method Summary | |
void |
addError(int inLine,
java.lang.String inDescription,
IContainedObject inContainer,
int inLevel)
|
void |
addError(java.lang.String inDescription,
IContainedObject inContainer,
org.w3c.dom.Node inNode,
int inLevel)
|
IContainedObject |
getContainer(int inPosition)
returns the container of the segment in error or the last valid container |
java.lang.String[] |
getError()
returns a string array of the errors found, or null if no errors. |
int |
getErrorCount()
returns the number of segment errors |
java.lang.String |
getErrorDescription(int inPosition)
returns the description of the error |
int |
getErrorLevel(int inLvl)
|
int |
getLevel(int inPosition)
returns the level of error |
int |
getLineNumber(int inPosition)
|
boolean |
isReportable(int inPosition)
returns the boolean indicator if the error is reportable by 997/CONTRL |
void |
logErrors()
logs the document error lines to the log file |
void |
setErrorLevel(int inLvl)
sets the minimim level of compliance checking default value is set to 2 minimum value is 1 maximum value is 10 |
void |
writeErrors(java.io.Writer inWrtr)
sends the document error lines to a java.io.Writer object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLErrors()
| Method Detail |
public void setErrorLevel(int inLvl)
inLvl - public int getErrorLevel(int inLvl)
public void addError(java.lang.String inDescription,
IContainedObject inContainer,
org.w3c.dom.Node inNode,
int inLevel)
inDescription - inContainer - inNode - inLevel -
public void addError(int inLine,
java.lang.String inDescription,
IContainedObject inContainer,
int inLevel)
inLine - inDescription - inContainer - inLevel - public int getErrorCount()
public java.lang.String getErrorDescription(int inPosition)
inPosition - is the position in the vector of errorspublic IContainedObject getContainer(int inPosition)
inPosition - is the position in the vector of errorspublic boolean isReportable(int inPosition)
inPosition - is the position in the vector of boolean indicatorpublic int getLevel(int inPosition)
inPosition - is the position in the vector of boolean indicator
public int getLineNumber(int inPosition)
public java.lang.String[] getError()
public void logErrors()
public void writeErrors(java.io.Writer inWrtr)
throws java.io.IOException
inWrtr - Writer
java.io.IOException - - something wrong with the Writer object?
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||