com.ail.core.document.generatedocument
Class MergeDataCommand

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.MergeDataCommand
All Implemented Interfaces:
CommandArg, MergeDataArg, java.io.Serializable, java.lang.Cloneable

public class MergeDataCommand
extends Command
implements MergeDataArg

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

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
MergeDataCommand()
           
 
Method Summary
 CommandArg getArgs()
          Get the argument set associated with this command.
 DocumentData getDocumentDataArg()
          Getter for the documentData property.
 XMLString getMergedDataRet()
          Getter for the mergedData property.
 Type getModelArg()
          Getter for the modelArg property.
 java.lang.String getProductNameArg()
          
 void setArgs(CommandArg arg)
          Update this Command object's arguments with those taken from the command arg passed in.
 void setDocumentDataArg(DocumentData documentDataArg)
          Setter for the keyArg property.
 void setMergedDataRet(XMLString mergedDataRet)
          Setter for the mergedData property.
 void setModelArg(Type modelArg)
          Setter for the modelArg property.
 void setProductNameArg(java.lang.String productNameArg)
          Set the name of the product for which data is being merged.
 
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

MergeDataCommand

public MergeDataCommand()
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 root of the object graph containing the data to be merged.

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

setModelArg

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

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

getDocumentDataArg

public DocumentData getDocumentDataArg()
Getter for the documentData property. Defines the document into which data from the model must be merged.

Specified by:
getDocumentDataArg in interface MergeDataArg
Returns:
Value of keyArg, or null if it is unset

getMergedDataRet

public XMLString getMergedDataRet()
Getter for the mergedData property. The result of the merge process

Specified by:
getMergedDataRet in interface MergeDataArg
Returns:
Value of renderedDocumentRet, or null if it is unset

setDocumentDataArg

public void setDocumentDataArg(DocumentData documentDataArg)
Setter for the keyArg property.

Specified by:
setDocumentDataArg in interface MergeDataArg
See Also:
MergeDataArg.getDocumentDataArg()

setMergedDataRet

public void setMergedDataRet(XMLString mergedDataRet)
Setter for the mergedData property.

Specified by:
setMergedDataRet in interface MergeDataArg
See Also:
MergeDataArg.getMergedDataRet()

getProductNameArg

public java.lang.String getProductNameArg()

Specified by:
getProductNameArg in interface MergeDataArg
Returns:
See Also:
MergeDataArg.setProductNameArg(String)

setProductNameArg

public void setProductNameArg(java.lang.String productNameArg)
Set the name of the product for which data is being merged.

Specified by:
setProductNameArg in interface MergeDataArg