public class CatalogType
extends java.lang.Object
Executable
and File
Executable
,
File
Modifier and Type | Field and Description |
---|---|
protected LogManager |
mLogger |
protected java.util.List<MetaData> |
mMetadata |
protected java.util.List<PFN> |
mPFNs |
protected java.util.List<Profile> |
mProfiles |
Modifier | Constructor and Description |
---|---|
protected |
CatalogType() |
protected |
CatalogType(CatalogType c)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
CatalogType |
addMetaData(java.util.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(java.lang.String type,
java.lang.String key,
java.lang.String value)
Add a Metadata entry for the Catalog object
|
CatalogType |
addPhysicalFile(PFN pfn)
Add a PFN object to the Catalog
|
CatalogType |
addPhysicalFile(java.lang.String url)
Add a pfn url to the Catalog
|
CatalogType |
addPhysicalFile(java.lang.String url,
java.lang.String site)
Add a PFN url and a site id to the Catalog
|
CatalogType |
addPhysicalFiles(java.util.List<PFN> pfns)
Add a list of PFN objects to the Catalog
|
CatalogType |
addProfile(Profile.NAMESPACE namespace,
java.lang.String key,
java.lang.String value)
Add a profile to the catalog entry
|
CatalogType |
addProfile(java.lang.String namespace,
java.lang.String key,
java.lang.String value)
Add a profile to the catalog entry
|
CatalogType |
addProfiles(java.util.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
|
java.util.List<MetaData> |
getMetaData()
Returns the List of MetaData objects associated with this Catalog entry object
|
java.util.List<PFN> |
getPhysicalFiles()
Returns a List of PFN objects associated with this Catalog entry
|
java.util.List<Profile> |
getProfiles()
Return the List of
Profile objects associated with this Catalog entry |
boolean |
isExecutable() |
boolean |
isFile() |
void |
toXML(XMLWriter writer)
Write the XML representation of this object
|
void |
toXML(XMLWriter writer,
int indent)
Write the XML representation of this object
|
protected java.util.List<Profile> mProfiles
protected java.util.List<MetaData> mMetadata
protected java.util.List<PFN> mPFNs
protected LogManager mLogger
protected CatalogType()
protected CatalogType(CatalogType c)
c
- public CatalogType addPhysicalFile(java.lang.String url)
url
- public CatalogType addPhysicalFile(java.lang.String url, java.lang.String site)
url
- site
- public CatalogType addPhysicalFile(PFN pfn)
pfn
- PFN
public CatalogType addPhysicalFiles(java.util.List<PFN> pfns)
pfns
- PFN
public java.util.List<PFN> getPhysicalFiles()
PFN
public CatalogType addMetaData(java.lang.String type, java.lang.String key, java.lang.String value)
type
- String type of metadatakey
- String key for the metadata entryvalue
- String value for the metadata entrypublic CatalogType addMetaData(MetaData metadata)
MetaData
object for the Catalog objectmetadata
- MetaData
public CatalogType addMetaData(java.util.List<MetaData> metadata)
MetaData
objects to the Catalog entry objectmetadata
- MetaData
public java.util.List<MetaData> getMetaData()
MetaData
public CatalogType addProfile(java.lang.String namespace, java.lang.String key, java.lang.String value)
namespace
- String Namespace of the profile. See Profile.NAMESPACE
for a list of valid namespaceskey
- String Key of the profilevalue
- String Value of the profileProfile.NAMESPACE
public CatalogType addProfile(Profile.NAMESPACE namespace, java.lang.String key, java.lang.String value)
namespace
- Profile.NAMESPACE
Namespace of the profilekey
- String Key of the profilevalue
- String Value of the profileProfile.NAMESPACE
public CatalogType addProfiles(java.util.List<Profile> profiles)
profiles
- List of Profile objectsProfile
public CatalogType addProfiles(Profile profile)
profile
- Profile
public java.util.List<Profile> getProfiles()
Profile
objects associated with this Catalog entryProfile
public boolean isFile()
public boolean isExecutable()
public void toXML(XMLWriter writer)
writer
- XMLWriter
public void toXML(XMLWriter writer, int indent)
writer
- indent
- XMLwriter