public class DOMetadata
extends java.lang.Object
Constructor and Description |
---|
DOMetadata() |
Modifier and Type | Method and Description |
---|---|
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) |
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)