|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dlese.dpc.repository.SetInfo
Data structure that holds information about a metadata set or collection, such as name, description, setSpec and location of data files.
DirInfo,
Serialized Form| Constructor Summary | |
|---|---|
SetInfo()
Constructor for the SetInfo object |
|
SetInfo(String name,
String setSpec,
String description,
String enabled,
String dir,
String format)
Constructor for the SetInfo object |
|
| Method Summary | |
|---|---|
void |
addDirInfo(String format,
String dir)
Adds a feature to the DirInfo attribute of the SetInfo object |
boolean |
containsDirectory(File directory)
Determines whether a directory is configured in this SetInfo. |
boolean |
containsDirInfo(DirInfo dirInfo)
Determines whether a DirInfo that matches the attributes of the given DirInfo already exists in this SetInfo. |
boolean |
equals(Object o)
Checks equality of two SetInfo objects. |
Object |
getAttribute(String key)
Gets an attribute Object from this SetInfo. |
String |
getDescription()
Gets the XML description. |
String |
getDescriptionHtml()
Gets the descriptionHtml attribute of the SetInfo object |
DirInfo |
getDirInfo(int i)
Gets the dirInfo attribute of the SetInfo object |
ArrayList |
getDirInfos()
Gets the dirInfos attribute of the SetInfo object |
String |
getEnabled()
Gets the enabled status String [true | false]. |
String |
getName()
Gets the name attribute of the SetInfo object |
String |
getSetSpec()
Gets the setSpec attribute of the SetInfo object |
boolean |
isEnabled()
Gets the enabled status boolean [true | false]. |
void |
removeDirInfo(int i)
DESCRIPTION |
void |
setAttribute(String key,
Object attribute)
Sets an attribute Object that will be available for access using the given key. |
void |
setDescription(String val)
Sets the description, which must be in XML form. |
void |
setDirInfo(int i,
DirInfo dirInfo)
Sets the dirInfo attribute of the SetInfo object |
void |
setDirInfo(int i,
String dir,
String format)
Sets the dirInfo attribute of the SetInfo object |
void |
setEnabled(String val)
Sets the enabled status [true | false]. |
void |
setName(String val)
Sets the name attribute of the SetInfo object |
void |
setSetSpec(String val)
Sets the setSpec attribute of the SetInfo object |
String |
toString()
Provides a String representataion for this SetInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SetInfo()
public SetInfo(String name,
String setSpec,
String description,
String enabled,
String dir,
String format)
name - The human-readable name of the setsetSpec - The oai setSpec that will be used to reference this setdir - A directory where files for this set are locatedformat - The native metadata format for the files in the above directorydescription - A description for this set, in XML form.enabled - [true | false]| Method Detail |
public String getName()
public void setName(String val)
val - The new name valuepublic String getSetSpec()
public void setSetSpec(String val)
val - The new setSpec valuepublic String getDescription()
public String getDescriptionHtml()
public void setDescription(String val)
val - The new description valuepublic String getEnabled()
public boolean isEnabled()
public void setEnabled(String val)
val - The String 'true' or 'false'.public ArrayList getDirInfos()
public DirInfo getDirInfo(int i)
i - DESCRIPTION
public void setDirInfo(int i,
DirInfo dirInfo)
i - The new dirInfo valuedirInfo - The new dirInfo value
public void setDirInfo(int i,
String dir,
String format)
i - The new dirInfo valuedir - The new dirInfo valueformat - The new dirInfo valuepublic boolean containsDirInfo(DirInfo dirInfo)
DirInfo that matches the attributes of the given DirInfo already exists in this SetInfo.
dirInfo - A DirInfo to check for existance.
DirInfo exists in this SetInfo.public boolean containsDirectory(File directory)
directory - A file directory.
public void removeDirInfo(int i)
i - DESCRIPTION
public void addDirInfo(String format,
String dir)
format - The feature to be added to the DirInfo attributedir - The feature to be added to the DirInfo attribute
public void setAttribute(String key,
Object attribute)
key - The key used to reference the attribute.attribute - Any Java Object that is Serializable.public Object getAttribute(String key)
key - The key used to reference the attribute.
public String toString()
equals(Object) method.
public boolean equals(Object o)
o - The SetInfo to compare to this
|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||