|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.files.CopyFile
Copies a file.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mDestination
path of the copy |
private java.lang.String |
mSource
relative path of file to be copied |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
CopyFile()
Construct a new activity instance which copies a file. |
|
CopyFile(java.lang.String fromPath,
java.lang.String toPath)
Construct a new activity instance which copies the given file to the specified destination. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
java.lang.String |
getDestination()
Returns the destination path of the copy. |
java.lang.String |
getSource()
Returns the path of the file to be copied. |
void |
setDestination(java.lang.String path)
|
void |
setSource(java.lang.String path)
Set the relative path of the file to delete. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mSource
private java.lang.String mDestination
Constructor Detail |
public CopyFile()
public CopyFile(java.lang.String fromPath, java.lang.String toPath)
fromPath
- origin of the file to be copiestoPath
- destination of the file to be copiedMethod Detail |
public void setSource(java.lang.String path)
path
- file to deletepublic void setDestination(java.lang.String path)
public java.lang.String getSource()
public java.lang.String getDestination()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |