net.kalio.empweb.engine
Class ProcessResult

java.lang.Object
  extended by net.kalio.empweb.engine.ProcessResult

public class ProcessResult
extends java.lang.Object

Title: ProcessResult

Description: A ProcessResult object, returned by a pipeline process/rule.

Copyright: Copyright (c) 2004, 2005
Company: Kalio

Version:
1.0
Author:
Barzilai Spinak, Sebastian Filippini, Ciro Mondueri

Field Summary
(package private)  long executionMillis
           
 
Constructor Summary
ProcessResult()
           
ProcessResult(boolean successful)
           
ProcessResult(EngineResult.Msg msg, org.w3c.dom.Element result, boolean successful)
           
ProcessResult(java.lang.String text, boolean successful)
          Convenience constructor for raw text ProcessResult's
ProcessResult(java.lang.String processName, EngineResult.Msg msg, org.w3c.dom.Element result, boolean successful)
           
ProcessResult(java.lang.String key, java.lang.String bundle, boolean successful)
           
 
Method Summary
 void addMsgParam(java.lang.String m)
          Convenience method to add a single parameters to the Msg.
 void addMsgParams(java.util.Iterator mpIt)
          Convenience method to add parameters to the Msg.
 void addMsgParams(java.lang.String[] mp)
          Convenience method to add parameters to the Msg.
 void addResult(org.w3c.dom.Element message)
           
 EngineResult.Msg getMsg()
           
 java.lang.String getProcessName()
           
 java.util.List<org.w3c.dom.Element> getResults()
           
 boolean isGenericException()
           
 boolean isSuccessful()
           
static org.w3c.dom.Document makeTransactionResultDOM(ProcessResult[] prArr)
           
static java.lang.String makeTransactionResultXML(ProcessResult[] prArr)
           
 void setGenericException(boolean ge)
           
 void setMsg(EngineResult.Msg m)
           
 void setMsgKeyBundle(java.lang.String k, java.lang.String bundle)
           
 void setProcessName(java.lang.String n)
           
 void setSuccessful(boolean successful)
           
 java.lang.String toString()
           
 java.lang.String toXMLString()
          Returns an XML String view of this object, as defined in the processResult element of http://kalio.net/empweb/schema/transactionresult/v1/empweb-transactionresult-1-0.xsd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

executionMillis

long executionMillis
Constructor Detail

ProcessResult

public ProcessResult()

ProcessResult

public ProcessResult(boolean successful)

ProcessResult

public ProcessResult(java.lang.String processName,
                     EngineResult.Msg msg,
                     org.w3c.dom.Element result,
                     boolean successful)

ProcessResult

public ProcessResult(EngineResult.Msg msg,
                     org.w3c.dom.Element result,
                     boolean successful)

ProcessResult

public ProcessResult(java.lang.String key,
                     java.lang.String bundle,
                     boolean successful)

ProcessResult

public ProcessResult(java.lang.String text,
                     boolean successful)
Convenience constructor for raw text ProcessResult's

Method Detail

setProcessName

public void setProcessName(java.lang.String n)

getProcessName

public java.lang.String getProcessName()

setMsgKeyBundle

public void setMsgKeyBundle(java.lang.String k,
                            java.lang.String bundle)

setMsg

public void setMsg(EngineResult.Msg m)

getMsg

public EngineResult.Msg getMsg()

addResult

public void addResult(org.w3c.dom.Element message)

getResults

public java.util.List<org.w3c.dom.Element> getResults()

setSuccessful

public void setSuccessful(boolean successful)

isSuccessful

public boolean isSuccessful()

addMsgParams

public void addMsgParams(java.util.Iterator mpIt)
Convenience method to add parameters to the Msg. It constructs a clean Msg for this object in case one didn't exist. But you better remember giving it a key (and a bundle) afterwards!!


addMsgParams

public void addMsgParams(java.lang.String[] mp)
Convenience method to add parameters to the Msg. It constructs a clean Msg for this object in case one didn't exist. But you better remember giving it a key (and a bundle) afterwards!!


addMsgParam

public void addMsgParam(java.lang.String m)
Convenience method to add a single parameters to the Msg. It constructs a clean Msg for this object in case one didn't exist. But you better remember giving it a key (and a bundle) afterwards!!


setGenericException

public void setGenericException(boolean ge)

isGenericException

public boolean isGenericException()

toXMLString

public java.lang.String toXMLString()
Returns an XML String view of this object, as defined in the processResult element of http://kalio.net/empweb/schema/transactionresult/v1/empweb-transactionresult-1-0.xsd


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

makeTransactionResultXML

public static java.lang.String makeTransactionResultXML(ProcessResult[] prArr)

makeTransactionResultDOM

public static org.w3c.dom.Document makeTransactionResultDOM(ProcessResult[] prArr)
                                                     throws net.kalio.xml.XMLException
Throws:
net.kalio.xml.XMLException