|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.metadata.MCRObjectMetadata
public class MCRObjectMetadata
This class implements all methode for handling one object metadata part. This class uses only metadata type classes of the general datamodel code of MyCoRe.
| Field Summary | |
|---|---|
(package private) static Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
MCRObjectMetadata()
This is the constructor of the MCRObjectMetadata class. |
|
| Method Summary | |
|---|---|
void |
appendMetadata(MCRObjectMetadata input)
This method append MCRMetaElement's from a given MCRObjectMetadata to this data set. |
Element |
createXML()
This methode create a XML stream for all metadata. |
void |
debug()
This method put debug data to the logger (for the debug mode). |
MCRObjectMetadata |
getHeritableMetadata()
getHeritableMetadata returns an instance of MCRObjectMetadata containing all the heritable MetaElement's of this object. |
MCRMetaElement |
getMetadataElement(int index)
This methode return the MCRMetaElement selected by an index. |
MCRMetaElement |
getMetadataElement(String tag)
This methode return the MCRMetaElement selected by tag. |
String |
getMetadataTagName(int i)
The method returns the tag name at a given index. |
boolean |
isValid()
This methode check the validation of the content of this class. |
void |
removeInheritedMetadata()
removeInheritedMetadata removes all inherited metadata elements |
MCRMetaElement |
removeMetadataElement(int index)
This methode remove the MCRMetaElement selected a index from the list. |
MCRMetaElement |
removeMetadataElement(String tag)
This methode remove the MCRMetaElement selected by tag from the list. |
void |
setFromDOM(Element element)
This methode read the XML input stream part from a DOM part for the metadata of the document. |
boolean |
setMetadataElement(MCRMetaElement obj,
String tag)
This methode set the given MCRMetaElement to the list. |
int |
size()
size returns the number of tag names in the ArrayList. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger LOGGER
| Constructor Detail |
|---|
public MCRObjectMetadata()
throws MCRConfigurationException
MCRConfigurationException - a special exception for configuartion data| Method Detail |
|---|
public int size()
public final String getMetadataTagName(int i)
i - given index
public final MCRObjectMetadata getHeritableMetadata()
throws MCRConfigurationException
MCRConfigurationExceptionpublic final void removeInheritedMetadata()
public final void appendMetadata(MCRObjectMetadata input)
input - the MCRObjectMetadata, that should merged into this data setpublic final MCRMetaElement getMetadataElement(String tag)
tag - the element tag
public final MCRMetaElement getMetadataElement(int index)
index - the element index
public final boolean setMetadataElement(MCRMetaElement obj,
String tag)
obj - the MCRMetaElement objecttag - the MCRMetaElement tag
public final MCRMetaElement removeMetadataElement(String tag)
public final MCRMetaElement removeMetadataElement(int index)
public final void setFromDOM(Element element)
throws MCRException
element - a list of relevant DOM elements for the metadata
MCRException - if a problem is occured
public final Element createXML()
throws MCRException
MCRException - if the content of this class is not validpublic final boolean isValid()
public final void debug()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||