com.ail.core.document.generatedocument
Class GenerateDocumentCommand

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.core.document.generatedocument.GenerateDocumentCommand
All Implemented Interfaces:
CommandArg, GenerateDocumentArg, java.io.Serializable, java.lang.Cloneable

public class GenerateDocumentCommand
extends Command
implements GenerateDocumentArg

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

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
GenerateDocumentCommand()
           
 
Method Summary
 CommandArg getArgs()
          Get the argument set associated with this command.
 java.lang.String getDocumentDefinitionArg()
          Getter for the documentDefinition property.
 Type getModelArg()
          Getter for the modelArg property.
 java.lang.String getProductNameArg()
          Getter returning the name of the product for which the document is to be generated,
 byte[] getRenderedDocumentRet()
          Getter for the renderedDocumentRet property.
 void setArgs(CommandArg arg)
          Update this Command object's arguments with those taken from the command arg passed in.
 void setDocumentDefinitionArg(java.lang.String documentDefinitionArg)
          Setter for the documentDefinition property.
 void setModelArg(Type modelArg)
          Setter for the modelArg property.
 void setProductNameArg(java.lang.String productNameArg)
          
 void setRenderedDocumentRet(byte[] renderedDocumentRet)
          Setter for the renderedDocumentRet property.
 
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

GenerateDocumentCommand

public GenerateDocumentCommand()
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.

getModelArg

public Type getModelArg()
Getter for the modelArg property. This is the representation of the dynamic data required to render the document

Specified by:
getModelArg in interface GenerateDocumentArg
Returns:
@{inheritDoc}

setModelArg

public void setModelArg(Type modelArg)
Setter for the modelArg property.

Specified by:
setModelArg in interface GenerateDocumentArg
Parameters:
modelArg - @{inheritDoc}
See Also:
GenerateDocumentArg.getModelArg()

getDocumentDefinitionArg

public java.lang.String getDocumentDefinitionArg()
Getter for the documentDefinition property. Defines the type of document to be rendered

Specified by:
getDocumentDefinitionArg in interface GenerateDocumentArg
Returns:
@{inheritDoc}

setDocumentDefinitionArg

public void setDocumentDefinitionArg(java.lang.String documentDefinitionArg)
Setter for the documentDefinition property.

Specified by:
setDocumentDefinitionArg in interface GenerateDocumentArg
Parameters:
documentDefinitionArg - @{inheritDoc}
See Also:
#getKeyArg

getRenderedDocumentRet

public byte[] getRenderedDocumentRet()
Getter for the renderedDocumentRet property. The result of the rendering process

Specified by:
getRenderedDocumentRet in interface GenerateDocumentArg
Returns:
@{inheritDoc}

setRenderedDocumentRet

public void setRenderedDocumentRet(byte[] renderedDocumentRet)
Setter for the renderedDocumentRet property. * @see #getRenderedDocumentRet

Specified by:
setRenderedDocumentRet in interface GenerateDocumentArg
Parameters:
renderedDocumentRet - @{inheritDoc}

getProductNameArg

public java.lang.String getProductNameArg()
Getter returning the name of the product for which the document is to be generated,

Specified by:
getProductNameArg in interface GenerateDocumentArg
Returns:
@{inheritDoc}

setProductNameArg

public void setProductNameArg(java.lang.String productNameArg)

Specified by:
setProductNameArg in interface GenerateDocumentArg
Parameters:
productNameArg - @{inheritDoc}
See Also:
GenerateDocumentArg.getProductNameArg()