public class DirInfo
extends java.lang.Object
implements java.io.Serializable
SetInfo,
Serialized Form| Constructor and Description |
|---|
DirInfo()
Constructor for the DirInfo object
|
DirInfo(java.lang.String dir,
java.lang.String format)
Constructor for the DirInfo object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Checks equality of two DirInfo objects.
|
java.lang.Object |
getAttribute(java.lang.String key)
Gets an attribute Object from this DirInfo.
|
java.lang.String |
getDirectory()
Gets the dir attribute of the DirInfo object
|
java.lang.String |
getFormat()
Gets the format attribute of the DirInfo object
|
boolean |
hasDirectory(java.io.File directory)
Determines whether this directory is the same as the given directory.
|
void |
setAttribute(java.lang.String key,
java.lang.Object attribute)
Sets an attribute Object that will be available for access using the given key.
|
void |
setDirectory(java.lang.String val)
Sets the dir attribute of the DirInfo object
|
void |
setFormat(java.lang.String val)
Sets the format attribute of the DirInfo object
|
java.lang.String |
toString()
Provides a String representataion for this DirInfo.
|
public DirInfo()
public DirInfo(java.lang.String dir,
java.lang.String format)
dir - The direcotory pathformat - The metadata format for the files in the directorypublic java.lang.String getDirectory()
public void setDirectory(java.lang.String val)
val - The new dir valuepublic boolean hasDirectory(java.io.File directory)
directory - A directorypublic java.lang.String getFormat()
public void setFormat(java.lang.String val)
val - The new format valuepublic void setAttribute(java.lang.String key,
java.lang.Object attribute)
key - The key used to reference the attribute.attribute - Any Java Object that is Serializable.public java.lang.Object getAttribute(java.lang.String key)
key - The key used to reference the attribute.public java.lang.String toString()
equals(Object) method.toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The DirInfo to compare to this