|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.do_api.DigitalObject
public class DigitalObject
This is a high level interface to an arbitrary digital object.
Method Summary | |
---|---|
void |
deleteAttribute(java.lang.String attributeName)
Delete the given attributeName for this object. |
void |
deleteAttributes(java.lang.String[] atts)
Atomically delete more than one attribute |
void |
deleteDataElement(java.lang.String elementID)
|
void |
deleteObject()
Deletes this digital object |
java.lang.String |
getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Associates the given attributeValue with the given attributeName for this object. |
HeaderSet |
getAttributes()
Return all attributes |
DataElement |
getDataElement(java.lang.String elementID)
Return a reference to the given data element within this object |
java.util.Date |
getDateCreated()
Return the date that this object was created |
java.util.Date |
getDateLastModified()
Return the date that this object was last modified |
java.lang.String |
getID()
|
java.lang.String |
getObjectID()
Returns the identifier for this digital object |
Repository |
getRepository()
Return the repository server through which this object is accessed |
long |
getSize()
Gets the size in bytes of the data element, not including attributes |
java.lang.String[] |
listAttributes()
Return the list of attribute names for this object |
java.lang.String[] |
listDataElements()
List the elements in this digital object |
StreamPair |
performOperation(java.lang.String operationID,
HeaderSet parameters)
Invoke a low-level operation on this object, returning the input and output streams for the operation in a StreamPair. |
void |
refresh()
Refresh information about Data Elements or Attributes. |
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Associates the given attributeValue with the given attributeName for this object. |
void |
setAttributes(HeaderSet atts)
Atomically set more than one attribute |
java.lang.String |
toString()
Returns a nicely formatted label for this object |
boolean |
verifyDataElement(java.lang.String elementID)
Verifies whether or not the data element with the given name exists within this object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Repository getRepository()
public java.lang.String getObjectID()
public java.lang.String getID()
public boolean verifyDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteObject() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] listDataElements() throws DOException, java.io.IOException
DOException
java.io.IOException
public DataElement getDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public StreamPair performOperation(java.lang.String operationID, HeaderSet parameters) throws DOException, java.io.IOException
DOException
java.io.IOException
public void refresh()
public java.util.Date getDateCreated() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.util.Date getDateLastModified() throws DOException, java.io.IOException
DOException
java.io.IOException
public long getSize() throws DOException, java.io.IOException
DOException
java.io.IOException
public void setAttribute(java.lang.String attributeName, java.lang.String attributeValue) throws DOException, java.io.IOException
DOException
java.io.IOException
public void setAttributes(HeaderSet atts) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteAttribute(java.lang.String attributeName) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteAttributes(java.lang.String[] atts) throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String getAttribute(java.lang.String attributeName, java.lang.String defaultValue) throws DOException, java.io.IOException
DOException
java.io.IOException
public HeaderSet getAttributes() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String[] listAttributes() throws DOException, java.io.IOException
DOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |