|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.dobj.DOMetadata
public class DOMetadata
Storage class for metadata about a digital object.
Constructor Summary | |
---|---|
DOMetadata()
|
Method Summary | |
---|---|
void |
clearTags()
Removes all tags from the metadata |
long |
getDateCreated()
Returns the date that the DO was most recently created. |
long |
getDateDeleted()
Returns the date that the DO was most recently deleted. |
java.lang.String |
getObjectID()
Returns the identifier for the object to which this metadata applies. |
java.lang.String |
getTag(java.lang.String tagName,
java.lang.String defaultValue)
Returns the value of the given tag. |
java.util.Iterator |
getTagNames()
Returns an iterator containing the names of all tags associated with this object. |
boolean |
objectExists()
Returns true if the object exists |
void |
resetFields()
Resets the contents of the metadata |
void |
setDateCreated(long newDateCreated)
Stores the date that the DO was most recently created. |
void |
setDateDeleted(long newDateDeleted)
Stores the date that the DO was most recently deleted. |
void |
setObjectID(java.lang.String newObjectID)
Sets the identifier for the object to which this metadata applies. |
void |
setTag(java.lang.String tagName,
java.lang.String tagValue)
Stores the given key-value pair as a tag along with this object. |
java.lang.String |
toString()
|
void |
updateModification(long timestamp)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DOMetadata()
Method Detail |
---|
public void resetFields()
public java.lang.String getObjectID()
public void setObjectID(java.lang.String newObjectID)
public java.lang.String getTag(java.lang.String tagName, java.lang.String defaultValue)
public void setTag(java.lang.String tagName, java.lang.String tagValue)
public java.util.Iterator getTagNames()
public void clearTags()
public boolean objectExists()
public void setDateCreated(long newDateCreated)
public long getDateCreated()
public void setDateDeleted(long newDateDeleted)
public long getDateDeleted()
public java.lang.String toString()
toString
in class java.lang.Object
public void updateModification(long timestamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |