org.apache.lenya.cms.ant
Class WriteDCParametersTask

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.WriteDCParametersTask

public class WriteDCParametersTask
extends PublicationTask

Ant task to insert a label into an existing node in a tree.


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
WriteDCParametersTask()
          Creates a new instance of InsertLabelTask
 
Method Summary
 void execute()
          (non-Javadoc)
 java.lang.String getArea()
          Get the area
 java.lang.String getCreator()
          Get the creator
 java.lang.String getDescription()
          Get the description
 java.lang.String getDocumentId()
          Get the document-id
 java.lang.String getLanguage()
          Get the language
 java.lang.String getPublisher()
          Get the publisher
 java.lang.String getRights()
          Get the rights
 java.lang.String getSubject()
          Get the subject
 java.lang.String getTitle()
          Get the title
 void setArea(java.lang.String string)
          Set the area
 void setCreator(java.lang.String string)
          Set the creator.
 void setDescription(java.lang.String string)
          Set the description
 void setDocumentId(java.lang.String string)
          Set the document-id
 void setLanguage(java.lang.String string)
          Set the language.
 void setPublisher(java.lang.String string)
          Set the publisher.
 void setRights(java.lang.String string)
          Set the rights
 void setSubject(java.lang.String string)
          Set the subject
 void setTitle(java.lang.String string)
          Set the title
 void writeDublinCoreParameters(java.lang.String documentId, java.lang.String area, java.lang.String lang, java.lang.String creator, java.lang.String title, java.lang.String description, java.lang.String subject, java.lang.String publisher, java.lang.String rights)
          Write the dublin core params.
 
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
getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, 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

WriteDCParametersTask

public WriteDCParametersTask()
Creates a new instance of InsertLabelTask

Method Detail

getCreator

public java.lang.String getCreator()
Get the creator

Returns:
the creator

getDescription

public java.lang.String getDescription()
Get the description

Overrides:
getDescription in class org.apache.tools.ant.Task
Returns:
the description

getPublisher

public java.lang.String getPublisher()
Get the publisher

Returns:
the publisher

getRights

public java.lang.String getRights()
Get the rights

Returns:
the rights

getSubject

public java.lang.String getSubject()
Get the subject

Returns:
the subject

getTitle

public java.lang.String getTitle()
Get the title

Returns:
the title

setCreator

public void setCreator(java.lang.String string)
Set the creator.

Parameters:
string - the creator

setDescription

public void setDescription(java.lang.String string)
Set the description

Overrides:
setDescription in class org.apache.tools.ant.Task
Parameters:
string - the description

setPublisher

public void setPublisher(java.lang.String string)
Set the publisher.

Parameters:
string - the publisher

setRights

public void setRights(java.lang.String string)
Set the rights

Parameters:
string - the rights

setSubject

public void setSubject(java.lang.String string)
Set the subject

Parameters:
string - the subject

setTitle

public void setTitle(java.lang.String string)
Set the title

Parameters:
string - the title

getArea

public java.lang.String getArea()
Get the area

Returns:
the area

setArea

public void setArea(java.lang.String string)
Set the area

Parameters:
string - the area

getDocumentId

public java.lang.String getDocumentId()
Get the document-id

Returns:
the document-id

setDocumentId

public void setDocumentId(java.lang.String string)
Set the document-id

Parameters:
string - the document-id

getLanguage

public java.lang.String getLanguage()
Get the language

Returns:
the language

setLanguage

public void setLanguage(java.lang.String string)
Set the language.

Parameters:
string - the language

writeDublinCoreParameters

public void writeDublinCoreParameters(java.lang.String documentId,
                                      java.lang.String area,
                                      java.lang.String lang,
                                      java.lang.String creator,
                                      java.lang.String title,
                                      java.lang.String description,
                                      java.lang.String subject,
                                      java.lang.String publisher,
                                      java.lang.String rights)
                               throws org.apache.tools.ant.BuildException,
                                      DocumentBuildException,
                                      DocumentException
Write the dublin core params.

Parameters:
documentId - the document-id
area - the area
lang - the language
creator - the creator.
title - the title
description - the description
subject - the subject
publisher - the publisher
rights - the rights
Throws:
org.apache.tools.ant.BuildException - if an error occurs
DocumentBuildException - if an error occurs
DocumentException - if an error occurs

execute

public void execute()
             throws org.apache.tools.ant.BuildException
(non-Javadoc)

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.