edu.isi.pegasus.planner.dax
Class CatalogType

java.lang.Object
  extended by edu.isi.pegasus.planner.dax.CatalogType
Direct Known Subclasses:
Executable, File

public class CatalogType
extends Object

Abstract Type for RC and TC Sections of the DAX. Extended by Executable and File

Version:
$Revision: 3618 $
Author:
gmehta
See Also:
Executable, File

Field Summary
protected  LogManager mLogger
           
protected  List<MetaData> mMetadata
           
protected  List<PFN> mPFNs
           
protected  List<Profile> mProfiles
           
 
Constructor Summary
protected CatalogType()
           
protected CatalogType(CatalogType c)
          Copy Constructor
 
Method Summary
 CatalogType addMetaData(List<MetaData> metadata)
          Add a List of MetaData objects to the Catalog entry object
 CatalogType addMetaData(MetaData metadata)
          Add a MetaData object for the Catalog object
 CatalogType addMetaData(String type, String key, String value)
          Add a Metadata entry for the Catalog object
 CatalogType addPhysicalFile(PFN pfn)
          Add a PFN object to the Catalog
 CatalogType addPhysicalFile(String url)
          Add a pfn url to the Catalog
 CatalogType addPhysicalFile(String url, String site)
          Add a PFN url and a site id to the Catalog
 CatalogType addPhysicalFiles(List<PFN> pfns)
          Add a list of PFN objects to the Catalog
 CatalogType addProfile(Profile.NAMESPACE namespace, String key, String value)
          Add a profile to the catalog entry
 CatalogType addProfile(String namespace, String key, String value)
          Add a profile to the catalog entry
 CatalogType addProfiles(List<Profile> profiles)
          Add a List of profile objects to this Catalog entry
 CatalogType addProfiles(Profile profile)
          Add a Profile object to this Catalog entry
 List<MetaData> getMetaData()
          Returns the List of MetaData objects associated with this Catalog entry object
 List<PFN> getPhysicalFiles()
          Returns a List of PFN objects associated with this Catalog entry
 List<Profile> getProfiles()
          Return the List of Profile objects associated with this Catalog entry
 void toXML(XMLWriter writer)
          Write the XML representation of this object
 void toXML(XMLWriter writer, int indent)
          Write the XML representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mProfiles

protected List<Profile> mProfiles

mMetadata

protected List<MetaData> mMetadata

mPFNs

protected List<PFN> mPFNs

mLogger

protected LogManager mLogger
Constructor Detail

CatalogType

protected CatalogType()

CatalogType

protected CatalogType(CatalogType c)
Copy Constructor

Parameters:
c -
Method Detail

addPhysicalFile

public CatalogType addPhysicalFile(String url)
Add a pfn url to the Catalog

Parameters:
url -
Returns:
CatalogType

addPhysicalFile

public CatalogType addPhysicalFile(String url,
                                   String site)
Add a PFN url and a site id to the Catalog

Parameters:
url -
site -
Returns:
CatalogType

addPhysicalFile

public CatalogType addPhysicalFile(PFN pfn)
Add a PFN object to the Catalog

Parameters:
pfn -
Returns:
CatalogType
See Also:
PFN

addPhysicalFiles

public CatalogType addPhysicalFiles(List<PFN> pfns)
Add a list of PFN objects to the Catalog

Parameters:
pfns -
Returns:
CatalogType
See Also:
PFN

getPhysicalFiles

public List<PFN> getPhysicalFiles()
Returns a List of PFN objects associated with this Catalog entry

Returns:
List
See Also:
PFN

addMetaData

public CatalogType addMetaData(String type,
                               String key,
                               String value)
Add a Metadata entry for the Catalog object

Parameters:
type - String type of metadata
key - String key for the metadata entry
value - String value for the metadata entry
Returns:
CatalogType

addMetaData

public CatalogType addMetaData(MetaData metadata)
Add a MetaData object for the Catalog object

Parameters:
metadata -
Returns:
CatalogType
See Also:
MetaData

addMetaData

public CatalogType addMetaData(List<MetaData> metadata)
Add a List of MetaData objects to the Catalog entry object

Parameters:
metadata -
Returns:
CatalogType
See Also:
MetaData

getMetaData

public List<MetaData> getMetaData()
Returns the List of MetaData objects associated with this Catalog entry object

Returns:
List
See Also:
MetaData

addProfile

public CatalogType addProfile(String namespace,
                              String key,
                              String value)
Add a profile to the catalog entry

Parameters:
namespace - String Namespace of the profile. See Profile.NAMESPACE for a list of valid namespaces
key - String Key of the profile
value - String Value of the profile
Returns:
CatalogType
See Also:
Profile.NAMESPACE

addProfile

public CatalogType addProfile(Profile.NAMESPACE namespace,
                              String key,
                              String value)
Add a profile to the catalog entry

Parameters:
namespace - Profile.NAMESPACE Namespace of the profile
key - String Key of the profile
value - String Value of the profile
Returns:
CatalogType
See Also:
Profile.NAMESPACE

addProfiles

public CatalogType addProfiles(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 -
Returns:
CatalogType
See Also:
Profile

getProfiles

public List<Profile> getProfiles()
Return the List of Profile objects associated with this Catalog entry

Returns:
List
See Also:
Profile

toXML

public void toXML(XMLWriter writer)
Write the XML representation of this object

Parameters:
writer -
See Also:
XMLWriter

toXML

public void toXML(XMLWriter writer,
                  int indent)
Write the XML representation of this object

Parameters:
writer -
indent -
See Also:
XMLwriter


Copyright © 2011 The University of Southern California. All Rights Reserved.