public class File extends CatalogType
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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.
|
mLogger, mMetadata, mPFNs, mProfiles
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
addMetaData, addMetaData, addMetaData, addPhysicalFile, addPhysicalFile, addPhysicalFile, addPhysicalFiles, addProfile, addProfile, addProfiles, addProfiles, getMetaData, getPhysicalFiles, getProfiles
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
public File(File f)
f
- Filepublic File(File f, File.LINK link)
f
- Filelink
- Linkpublic File(String namespace, String name, String version)
namespace
- name
- version
- public File(String name)
name
- The name of the filepublic File(String name, File.LINK link)
name
- The name of the filelink
- The linkage of the filepublic String getName()
public String getNamespace()
public String getVersion()
public File.LINK getLink()
public File setLink(File.LINK link)
link
- File.LINK
public 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.TRANSFER
public File.TRANSFER getTransfer()
public File setExecutable(boolean executable)
executable
- public File setExecutable()
public File SetExecutable()
public boolean getExecutable()
public boolean equals(Object o)
public void toXML(XMLWriter writer)
toXML
in class CatalogType
writer
- XMLWriter
public void toXML(XMLWriter writer, int indent)
toXML
in class CatalogType
writer
- indent
- XMLwriter
Copyright © 2011 The University of Southern California. All Rights Reserved.