org.apache.lenya.cms.ant
Class DeleteLanguageNodeTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.lenya.cms.ant.PublicationTask
org.apache.lenya.cms.ant.DeleteNodeTask
org.apache.lenya.cms.ant.DeleteLanguageNodeTask
public class DeleteLanguageNodeTask
- extends DeleteNodeTask
Ant task to remove the language from the node corresponding to the document
with document id and area . The node is also deleted if no
other language is available.
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 |
Method Summary |
void |
deleteLanguageNode(java.lang.String language,
java.lang.String documentid,
java.lang.String area)
Remove the language from the node corresponding to the document
with document id and area . |
void |
execute()
(non-Javadoc) |
java.lang.String |
getLanguage()
Get the value of the language to be removed. |
void |
setLanguage(java.lang.String string)
Set the value of the language to be removed. |
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 |
DeleteLanguageNodeTask
public DeleteLanguageNodeTask()
- Creates a new instance of DeleteLanguageNodeTask
deleteLanguageNode
public void deleteLanguageNode(java.lang.String language,
java.lang.String documentid,
java.lang.String area)
throws SiteTreeException
- Remove the language from the node corresponding to the document
with document id and area . When no more language
is available, then the node will be deleted fom the tree.
- Parameters:
language
- The language of the document.documentid
- The id of the document.area
- The area of the document.
- Throws:
SiteTreeException
- if an error occurs
execute
public void execute()
throws org.apache.tools.ant.BuildException
- (non-Javadoc)
- Overrides:
execute
in class DeleteNodeTask
- Throws:
org.apache.tools.ant.BuildException
- See Also:
Task.execute()
getLanguage
public java.lang.String getLanguage()
- Get the value of the language to be removed.
- Returns:
- The language
setLanguage
public void setLanguage(java.lang.String string)
- Set the value of the language to be removed.
- Parameters:
string
- The language.
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.