public class SyncingDataElement extends DataElementWrapper implements DataElement
| Constructor and Description |
|---|
SyncingDataElement(DigitalObject syncingObject,
DataElement localElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAttribute(java.lang.String name)
Deletes a particular attribute.
|
void |
deleteAttributes(java.util.List<java.lang.String> names)
Deletes multiple attributes.
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets a particular attribute.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets the value of multiple attributes.
|
void |
setType(java.lang.String type)
Sets the MIME type of the given data.
|
long |
write(java.io.InputStream data)
Writes new data into the data element.
|
long |
write(java.io.InputStream data,
boolean append)
Writes new data into the data element.
|
delete, getAttribute, getAttributes, getDigitalObject, getName, getSize, getType, listAttributes, read, readequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, getAttribute, getAttributes, getDigitalObject, getName, getSize, getType, listAttributes, read, readpublic SyncingDataElement(DigitalObject syncingObject, DataElement localElement)
public void setAttribute(java.lang.String name,
java.lang.String value)
throws RepositoryException
DataElementsetAttribute in interface DataElementsetAttribute in class DataElementWrappername - the attribute namevalue - the attribute value; if null, the attribute will be deleted.RepositoryExceptionpublic void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
throws RepositoryException
DataElementsetAttributes in interface DataElementsetAttributes in class DataElementWrapperattributes - the attributes to set, mapped to their new valuesRepositoryExceptionpublic void deleteAttribute(java.lang.String name)
throws RepositoryException
DataElementdeleteAttribute in interface DataElementdeleteAttribute in class DataElementWrappername - the name of the attribute to deleteRepositoryExceptionpublic void deleteAttributes(java.util.List<java.lang.String> names)
throws RepositoryException
DataElementdeleteAttributes in interface DataElementdeleteAttributes in class DataElementWrappernames - the names of the attributes to deleteRepositoryExceptionpublic void setType(java.lang.String type)
throws RepositoryException
DataElementsetType in interface DataElementsetType in class DataElementWrappertype - the new MIME typeRepositoryExceptionpublic long write(java.io.InputStream data)
throws java.io.IOException,
RepositoryException
DataElementwrite in interface DataElementwrite in class DataElementWrapperdata - an InputStream streaming the new datajava.io.IOExceptionRepositoryExceptionpublic long write(java.io.InputStream data,
boolean append)
throws java.io.IOException,
RepositoryException
DataElementwrite in interface DataElementwrite in class DataElementWrapperdata - an InputStream streaming the new dataappend - whether to append the new data to the existing datajava.io.IOExceptionRepositoryException