|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.dax.CatalogType
edu.isi.pegasus.planner.dax.File
public class File
This class is the container for any File object, either the RC section, or uses
| Nested Class Summary | |
|---|---|
static class |
File.LINK
The linkages that a file can be of |
static class |
File.TRANSFER
Three Transfer modes supported, Transfer this file, don't transfer or stageout as well as optional. |
| Field Summary | |
|---|---|
protected boolean |
mExecutable
Is the file an executable. |
protected File.LINK |
mLink
|
protected String |
mName
The logical name of the file. |
protected String |
mNamespace
The namespace on a file. |
protected boolean |
mOptional
Is the file optional |
protected boolean |
mRegister
Should the file be registered in the replica catalog |
protected File.TRANSFER |
mTransfer
Should the file be transferred on generation. |
protected String |
mVersion
The logical version of the file. |
| Fields inherited from class edu.isi.pegasus.planner.dax.CatalogType |
|---|
mLogger, mMetadata, mPFNs, mProfiles |
| Constructor Summary | |
|---|---|
File(File f)
Copy constructor |
|
File(File f,
File.LINK link)
Copy constructor, but change the linkage of the file. |
|
File(String name)
Create new file object |
|
File(String name,
File.LINK link)
Create new file object |
|
File(String namespace,
String name,
String version)
Create new File object |
|
File(String namespace,
String name,
String version,
File.LINK link)
Create a new file object |
|
| Method Summary | |
|---|---|
File |
clone()
Return a clone of this File |
boolean |
equals(Object o)
Check if this File is equal to Object o |
boolean |
getExecutable()
Check if the file is an executable |
File.LINK |
getLink()
Get the linkage of the file. |
String |
getName()
Get the name of the file |
String |
getNamespace()
Get the namespace of the file |
boolean |
getOptional()
Check the optional flag of the file |
boolean |
getRegister()
Get the register flag of this file. |
File.TRANSFER |
getTransfer()
Get the transfer type of the file |
String |
getVersion()
Get the version of the file |
int |
hashCode()
HashCode of this File |
File |
setExecutable()
Mart the file as executable. |
File |
SetExecutable()
Deprecated. |
File |
setExecutable(boolean executable)
Mark the file as executable. |
File |
setLink(File.LINK link)
Set the file linkage |
File |
setOptional(boolean optionalflag)
Set the optional flag on the file. |
File |
setRegister(boolean registerflag)
Set the register flag of the file. |
File |
setTransfer(File.TRANSFER transferflag)
Set the transfer type of the file |
void |
toXML(XMLWriter writer)
Write the file object |
void |
toXML(XMLWriter writer,
int indent)
Write the file object, with indent level N |
void |
toXML(XMLWriter writer,
int indent,
String elementname)
Write the file object as XML but render it as the elementname |
| Methods inherited from class edu.isi.pegasus.planner.dax.CatalogType |
|---|
addMetaData, addMetaData, addMetaData, addPhysicalFile, addPhysicalFile, addPhysicalFile, addPhysicalFiles, addProfile, addProfile, addProfiles, addProfiles, getMetaData, getPhysicalFiles, getProfiles |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String mNamespace
protected String mName
protected String mVersion
protected File.LINK mLink
protected boolean mOptional
protected boolean mRegister
protected File.TRANSFER mTransfer
protected boolean mExecutable
| Constructor Detail |
|---|
public File(File f)
f - File
public File(File f,
File.LINK link)
f - Filelink - Link
public File(String namespace,
String name,
String version)
namespace - name - version - public File(String name)
name - The name of the file
public File(String name,
File.LINK link)
name - The name of the filelink - The linkage of the file
public File(String namespace,
String name,
String version,
File.LINK link)
namespace - The namespace of the filename - The name of the fileversion - The version of the filelink - The linkage of the file.| Method Detail |
|---|
public String getName()
public String getNamespace()
public String getVersion()
public File.LINK getLink()
public File setLink(File.LINK link)
link -
File.LINKpublic File setOptional(boolean optionalflag)
optionalflag -
public boolean getOptional()
public File setRegister(boolean registerflag)
registerflag -
public boolean getRegister()
public File setTransfer(File.TRANSFER transferflag)
transferflag -
File.TRANSFERpublic File.TRANSFER getTransfer()
public File setExecutable(boolean executable)
executable -
public File setExecutable()
public File SetExecutable()
public boolean getExecutable()
public boolean equals(Object o)
equals in class Objecto -
public int hashCode()
hashCode in class Objectpublic File clone()
clone in class Objectpublic void toXML(XMLWriter writer)
toXML in class CatalogTypewriter - XMLWriter
public void toXML(XMLWriter writer,
int indent)
toXML in class CatalogTypewriter - indent - XMLwriter
public void toXML(XMLWriter writer,
int indent,
String elementname)
writer - indent - elementname -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||