Package edu.isi.pegasus.planner.dax
Class CatalogType
- java.lang.Object
-
- edu.isi.pegasus.planner.dax.CatalogType
-
- Direct Known Subclasses:
Executable
,File
public class CatalogType extends java.lang.Object
Abstract Type for RC and TC Sections of the DAX. Extended byExecutable
andFile
- Version:
- $Revision$
- Author:
- gmehta
- See Also:
Executable
,File
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CatalogType()
protected
CatalogType(CatalogType c)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogType
addMetaData(MetaData metadata)
Add aMetaData
object for the Catalog objectCatalogType
addMetaData(java.lang.String key, java.lang.String value)
Add a Metadata entry for the CatalogCatalogType
addMetaData(java.util.List<MetaData> metadata)
Add a List ofMetaData
objects to the Catalog entry objectCatalogType
addPhysicalFile(PFN pfn)
Add a PFN object to the CatalogCatalogType
addPhysicalFile(java.lang.String url)
Add a pfn url to the CatalogCatalogType
addPhysicalFile(java.lang.String url, java.lang.String site)
Add a PFN url and a site id to the CatalogCatalogType
addPhysicalFiles(java.util.List<PFN> pfns)
Add a list of PFN objects to the CatalogCatalogType
addProfile(Profile.NAMESPACE namespace, java.lang.String key, java.lang.String value)
Add a profile to the catalog entryCatalogType
addProfile(java.lang.String namespace, java.lang.String key, java.lang.String value)
Add a profile to the catalog entryCatalogType
addProfiles(Profile profile)
Add a Profile object to this Catalog entryCatalogType
addProfiles(java.util.List<Profile> profiles)
Add a List of profile objects to this Catalog entryjava.util.Set<MetaData>
getMetaData()
Returns the List of MetaData objects associated with this Catalog entry objectjava.util.List<PFN>
getPhysicalFiles()
Returns a List of PFN objects associated with this Catalog entryjava.util.List<Profile>
getProfiles()
Return the List ofProfile
objects associated with this Catalog entryboolean
isExecutable()
boolean
isFile()
void
toXML(edu.isi.pegasus.common.util.XMLWriter writer)
Write the XML representation of this objectvoid
toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
Write the XML representation of this object
-
-
-
Constructor Detail
-
CatalogType
protected CatalogType()
-
CatalogType
protected CatalogType(CatalogType c)
Copy Constructor- Parameters:
c
- object copied from
-
-
Method Detail
-
addPhysicalFile
public CatalogType addPhysicalFile(java.lang.String url)
Add a pfn url to the Catalog- Parameters:
url
- the PFN- Returns:
- CatalogType CatalogType
-
addPhysicalFile
public CatalogType addPhysicalFile(java.lang.String url, java.lang.String site)
Add a PFN url and a site id to the Catalog- Parameters:
url
- the pfnsite
- the site at which file resides- Returns:
- CatalogType
-
addPhysicalFile
public CatalogType addPhysicalFile(PFN pfn)
Add a PFN object to the Catalog- Parameters:
pfn
- the pfn- Returns:
- CatalogType
- See Also:
PFN
-
addPhysicalFiles
public CatalogType addPhysicalFiles(java.util.List<PFN> pfns)
Add a list of PFN objects to the Catalog- Parameters:
pfns
- List of PFN objects- Returns:
- CatalogType
- See Also:
PFN
-
getPhysicalFiles
public java.util.List<PFN> getPhysicalFiles()
Returns a List of PFN objects associated with this Catalog entry- Returns:
- List of PFN objects
- See Also:
PFN
-
addMetaData
public CatalogType addMetaData(java.lang.String key, java.lang.String value)
Add a Metadata entry for the Catalog- Parameters:
key
- String key for the metadata entryvalue
- String value for the metadata entry- Returns:
- CatalogType
-
addMetaData
public CatalogType addMetaData(MetaData metadata)
Add aMetaData
object for the Catalog object- Parameters:
metadata
- the MetaData- Returns:
- CatalogType
- See Also:
MetaData
-
addMetaData
public CatalogType addMetaData(java.util.List<MetaData> metadata)
Add a List ofMetaData
objects to the Catalog entry object- Parameters:
metadata
- List of MetaData objects- Returns:
- CatalogType
- See Also:
MetaData
-
getMetaData
public java.util.Set<MetaData> getMetaData()
Returns the List of MetaData objects associated with this Catalog entry object- Returns:
- Set of MetaData objects
- See Also:
MetaData
-
addProfile
public CatalogType addProfile(java.lang.String namespace, java.lang.String key, java.lang.String value)
Add a profile to the catalog entry- Parameters:
namespace
- String Namespace of the profile. SeeProfile.NAMESPACE
for a list of valid namespaceskey
- String Key of the profilevalue
- String Value of the profile- Returns:
- CatalogType
- See Also:
Profile.NAMESPACE
-
addProfile
public CatalogType addProfile(Profile.NAMESPACE namespace, java.lang.String key, java.lang.String value)
Add a profile to the catalog entry- Parameters:
namespace
-Profile.NAMESPACE
Namespace of the profilekey
- String Key of the profilevalue
- String Value of the profile- Returns:
- CatalogType
- See Also:
Profile.NAMESPACE
-
addProfiles
public CatalogType addProfiles(java.util.List<Profile> profiles)
Add a List of profile objects to this Catalog entry- Parameters:
profiles
- List of Profile objects- Returns:
- CatalogType
- See Also:
Profile
-
addProfiles
public CatalogType addProfiles(Profile profile)
Add a Profile object to this Catalog entry- Parameters:
profile
- the profile to add- Returns:
- CatalogType
- See Also:
Profile
-
getProfiles
public java.util.List<Profile> getProfiles()
Return the List ofProfile
objects associated with this Catalog entry- Returns:
- List of Profile
- See Also:
Profile
-
isFile
public boolean isFile()
-
isExecutable
public boolean isExecutable()
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer)
Write the XML representation of this object- Parameters:
writer
- the xml writer- See Also:
XMLWriter
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
Write the XML representation of this object- Parameters:
writer
- the xml writerindent
- the number of indent spaces- See Also:
XMLWriter
-
-