com.ail.insurance.quotation.fetchdocument
Class FetchDocumentCommand

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.command.AbstractCommand
          extended by com.ail.core.command.Command
              extended by com.ail.insurance.quotation.fetchdocument.FetchDocumentCommand
All Implemented Interfaces:
CommandArg, FetchDocumentArg, java.io.Serializable, java.lang.Cloneable

public class FetchDocumentCommand
extends Command
implements FetchDocumentArg

Version:
$Revision$
Author:
$Author$
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
FetchDocumentCommand()
           
 
Method Summary
 CommandArg getArgs()
          Get the argument set associated with this command.
 byte[] getDocumentRet()
          The generated document.
 java.lang.String getQuotationNumberArg()
          The number of the quotation for which a document should be returned
 void setArgs(CommandArg arg)
          Update this Command object's arguments with those taken from the command arg passed in.
 void setDocumentRet(byte[] documentRet)
           
 void setQuotationNumberArg(java.lang.String quotationNumberArg)
           
 
Methods inherited from class com.ail.core.command.Command
clone, getAccessor, getCallersCore, getConfiguration, getVersion, invoke, setAccessor, setCallersCore, setConfiguration, setService
 
Methods inherited from class com.ail.core.Type
addAttribute, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ail.core.command.CommandArg
getCallersCore, setCallersCore
 

Constructor Detail

FetchDocumentCommand

public FetchDocumentCommand()
Method Detail

setArgs

public void setArgs(CommandArg arg)
Description copied from class: AbstractCommand
Update this Command object's arguments with those taken from the command arg passed in. This is in effect a bulk setter. This interface will be implemented by beans that have many more getters/setters to support their properties. The implementations of this method take 'that', and pull all the relevant properties into this.

Specified by:
setArgs in class AbstractCommand
Parameters:
arg - Source for arguments

getArgs

public CommandArg getArgs()
Description copied from class: AbstractCommand
Get the argument set associated with this command.

Specified by:
getArgs in class AbstractCommand
Returns:
This objects arguments.

getDocumentRet

public byte[] getDocumentRet()
Description copied from interface: FetchDocumentArg
The generated document.

Specified by:
getDocumentRet in interface FetchDocumentArg
Returns:
document

setDocumentRet

public void setDocumentRet(byte[] documentRet)
Specified by:
setDocumentRet in interface FetchDocumentArg
See Also:
FetchDocumentArg.getDocumentRet()

getQuotationNumberArg

public java.lang.String getQuotationNumberArg()
Description copied from interface: FetchDocumentArg
The number of the quotation for which a document should be returned

Specified by:
getQuotationNumberArg in interface FetchDocumentArg
Returns:
quotation number.

setQuotationNumberArg

public void setQuotationNumberArg(java.lang.String quotationNumberArg)
Specified by:
setQuotationNumberArg in interface FetchDocumentArg
See Also:
#getPolicyArg()