Class VErrorParser
java.lang.Object
org.jpos.iso.validator.VErrorParser
Parse ISOComponents and put the errors into a list.
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) Parse error list, and get an dump the xml string representing the list.Returns the Logger associated with this source.getRealm()Returns the log realm associated with this source.Parse an ISOComponent and get an error vector.Returns an XML rendering of the parsed error list.voidFree errors memory.voidAttaches aLoggerand realm to this log source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Loggeable
dumpModifier and TypeMethodDescriptiondefault voiddump(PrintStream p, String indent, LogRenderer.Type type) Dumps a representation of this object using the specified renderer type.
-
Field Details
-
logger
-
realm
-
-
Constructor Details
-
VErrorParser
public VErrorParser()Default constructor; no instance state to initialise.
-
-
Method Details
-
getVErrors
Parse an ISOComponent and get an error vector.- Parameters:
c- Component to parse.- Returns:
- error vector.
-
parseXMLErrorList
Returns an XML rendering of the parsed error list.- Returns:
- the XML string (currently a stub; always empty)
-
setLogger
-
getRealm
-
getLogger
-
dump
Parse error list, and get an dump the xml string representing the list.Ex: <isomsg> <field id="2"> <error description="Invalid Len Error" reject-code="101"/> </field> <field id="48"> <field id="0"> <field id="1"> <error description="Invalid Value Error" reject-code="102"/> </field> </field> </field> <error description="Field Expected Error" reject-code="999"> </isomsg> -
resetErrors
Free errors memory.
-