org.apache.lenya.cms.ant
Class DocumentOperationTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.lenya.cms.ant.PublicationTask
              extended by org.apache.lenya.cms.ant.DocumentOperationTask
All Implemented Interfaces:
SiteTreeNodeVisitor
Direct Known Subclasses:
TwoDocumentsOperationTask

public abstract class DocumentOperationTask
extends PublicationTask
implements SiteTreeNodeVisitor

Abstract base class for Ant tasks, which implements the SiteTreeNodeVisitor to call an operation for a document. (Visitor pattern)


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
DocumentOperationTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getFirstarea()
           
 java.lang.String getFirstdocumentid()
           
 void setFirstarea(java.lang.String string)
           
 void setFirstdocumentid(java.lang.String string)
           
abstract  void visitSiteTreeNode(SiteTreeNode node)
          To be overriden.
 
Methods inherited from class org.apache.lenya.cms.ant.PublicationTask
assertString, getContextPrefix, getPublication, getPublicationDirectory, getPublicationId, getServletContext
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentOperationTask

public DocumentOperationTask()
Method Detail

getFirstarea

public java.lang.String getFirstarea()
Returns:
String The area of the source.

getFirstdocumentid

public java.lang.String getFirstdocumentid()
Returns:
String The document-id corresponding to the source.

setFirstarea

public void setFirstarea(java.lang.String string)
Parameters:
string - The area of the source.

setFirstdocumentid

public void setFirstdocumentid(java.lang.String string)
Parameters:
string - The document-id corresponding to the source.

visitSiteTreeNode

public abstract void visitSiteTreeNode(SiteTreeNode node)
To be overriden.

Specified by:
visitSiteTreeNode in interface SiteTreeNodeVisitor
Parameters:
node - The SiteTreeNode.
See Also:
SiteTreeNodeVisitor.visitSiteTreeNode(org.apache.lenya.cms.publication.SiteTreeNode)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.