|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.repository.DirInfo
Data structure that holds information about a directory of metadata files. Includes the directory name and the metadata format for the files in that directory.
SetInfo
,
Serialized FormConstructor Summary | |
---|---|
DirInfo()
Constructor for the DirInfo object |
|
DirInfo(String dir,
String format)
Constructor for the DirInfo object |
Method Summary | |
---|---|
boolean |
equals(Object o)
Checks equality of two DirInfo objects. |
Object |
getAttribute(String key)
Gets an attribute Object from this DirInfo. |
String |
getDirectory()
Gets the dir attribute of the DirInfo object |
String |
getFormat()
Gets the format attribute of the DirInfo object |
boolean |
hasDirectory(File directory)
Determines whether this directory is the same as the given directory. |
void |
setAttribute(String key,
Object attribute)
Sets an attribute Object that will be available for access using the given key. |
void |
setDirectory(String val)
Sets the dir attribute of the DirInfo object |
void |
setFormat(String val)
Sets the format attribute of the DirInfo object |
String |
toString()
Provides a String representataion for this DirInfo. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DirInfo()
public DirInfo(String dir, String format)
dir
- The direcotory pathformat
- The metadata format for the files in the directoryMethod Detail |
public String getDirectory()
public void setDirectory(String val)
val
- The new dir valuepublic boolean hasDirectory(File directory)
directory
- A directory
public String getFormat()
public void setFormat(String val)
val
- The new format valuepublic 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 DirInfo to compare to this
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |