org.jpos.iso.validator
Class VErrorParser

java.lang.Object
  extended by org.jpos.iso.validator.VErrorParser
All Implemented Interfaces:
Loggeable, LogSource

public class VErrorParser
extends Object
implements LogSource, Loggeable

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

Version:
1.0
Author:
Jose Eduardo Leon

Field Summary
protected  Logger logger
           
protected  String realm
           
 
Constructor Summary
VErrorParser()
           
 
Method Summary
 void dump(PrintStream p, String indent)
          Parse error list, and get an dump the xml string representing the list.
 Logger getLogger()
           
 String getRealm()
           
 Vector getVErrors(ISOComponent c)
          Parse an ISOComponent and get an error vector.
 String parseXMLErrorList()
           
 void resetErrors()
          Free errors memory.
 void setLogger(Logger logger, String realm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger

realm

protected String realm
Constructor Detail

VErrorParser

public VErrorParser()
Method Detail

getVErrors

public Vector getVErrors(ISOComponent c)
Parse an ISOComponent and get an error vector.

Parameters:
c - Component to parse.
Returns:
error vector.

parseXMLErrorList

public String parseXMLErrorList()

setLogger

public void setLogger(Logger logger,
                      String realm)
Specified by:
setLogger in interface LogSource

getRealm

public String getRealm()
Specified by:
getRealm in interface LogSource

getLogger

public Logger getLogger()
Specified by:
getLogger in interface LogSource

dump

public void dump(PrintStream p,
                 String indent)
Parse error list, and get an dump the xml string representing the list.
 Ex:
 
   
     
   
   
     
       
         
       
     
   
   
 
 

Specified by:
dump in interface Loggeable
Parameters:
p - output stream
indent - indent character

resetErrors

public void resetErrors()
Free errors memory.



Copyright © 1998-2012 jPOS.org. All Rights Reserved.