| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.lenya.cms.ant.PublicationTask
org.apache.lenya.cms.ant.ChangeHrefTask
public class ChangeHrefTask
Ant task to change the href attribute of a label element in the sitetree.
| 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 | |
|---|---|
ChangeHrefTask()
Creates a new instance of ChangeHrefTask  | 
|
| Method Summary | |
|---|---|
 void | 
changeHref(java.lang.String documentid,
           java.lang.String language,
           java.lang.String area,
           java.lang.String href)
Change the href attribute of an existing node in the tree.  | 
 void | 
execute()
(non-Javadoc)  | 
protected  java.lang.String | 
getArea()
Get the area of the site tree.  | 
protected  java.lang.String | 
getDocumentid()
Return the document-id corresponding to the node to delete.  | 
 java.lang.String | 
getHref()
Get the href.  | 
 java.lang.String | 
getLanguage()
Get the language.  | 
 void | 
setArea(java.lang.String area)
Set the area.  | 
 void | 
setDocumentid(java.lang.String string)
Set the value of the document-id corresponding to the node to delete.  | 
 void | 
setHref(java.lang.String href)
Set the href.  | 
 void | 
setLanguage(java.lang.String language)
Set the language.  | 
| 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 | 
|---|
public ChangeHrefTask()
| Method Detail | 
|---|
protected java.lang.String getArea()
public void setArea(java.lang.String area)
area - the area.protected java.lang.String getDocumentid()
public void setDocumentid(java.lang.String string)
string - The document-id.public java.lang.String getHref()
public void setHref(java.lang.String href)
value - of the hrefpublic java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language - the language
public void changeHref(java.lang.String documentid,
                       java.lang.String language,
                       java.lang.String area,
                       java.lang.String href)
                throws SiteTreeException,
                       DocumentException
documentid - the document-id of the document.language - the language of the label that is to be renamed.area - determines in which sitetree the label is to be renamedhref - the new href value
SiteTreeException - if an error occurs.
DocumentException
public void execute()
             throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||