public interface MetaDataContainer
HObject
Modifier and Type | Method and Description |
---|---|
List |
getMetadata()
Retrieves the object's metadata, such as attributes, from the file.
|
boolean |
hasAttribute()
Check if the object has any attributes attached.
|
void |
removeMetadata(Object metadata)
Deletes an existing piece of metadata from this object.
|
void |
updateMetadata(Object metadata)
Updates an existing piece of metadata attached to this object.
|
void |
writeMetadata(Object metadata)
Writes a specific piece of metadata (such as an attribute) into the file.
|
List getMetadata() throws Exception
Metadata, such as attributes, is stored in a List.
Exception
- if the metadata can not be retrievedvoid writeMetadata(Object metadata) throws Exception
metadata
- the metadata to write.Exception
- if the metadata can not be writtenvoid removeMetadata(Object metadata) throws Exception
metadata
- the metadata to delete.Exception
- if the metadata can not be removedvoid updateMetadata(Object metadata) throws Exception
metadata
- the metadata to update.Exception
- if the metadata can not be updatedboolean hasAttribute()
Copyright © 2018. All Rights Reserved.