|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.metadata.MCRMetaDefault
org.mycore.datamodel.metadata.MCRMetaIFS
public final class MCRMetaIFS
This class implements all method for handling the IFS metadata. The MCRMetaIFS class present all informations to store and retrieve derivates to the IFS.
<tag class="MCRMetaIFS" >
<subtag sourcepath="..." maindoc="..." ifsid="..." />
</tag>
| Field Summary |
|---|
| Fields inherited from class org.mycore.datamodel.metadata.MCRMetaDefault |
|---|
datapart, DEFAULT_DATAPART, DEFAULT_INHERITED, DEFAULT_LANG_LENGTH, DEFAULT_LANGUAGE, DEFAULT_STRING_LENGTH, DEFAULT_TYPE_LENGTH, inherited, lang, LOGGER, NL, subtag, type |
| Constructor Summary | |
|---|---|
MCRMetaIFS()
This is the constructor. |
|
MCRMetaIFS(String set_datapart,
String set_subtag,
String default_lang,
String set_sourcepath)
This is the constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
This method make a NOT clone of this class. |
Element |
createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaIFS definition for the given subtag. |
String |
getIFSID()
The method return the derivate IFS ID. |
String |
getMainDoc()
The method return the derivate main document name. |
String |
getSourcePath()
The method return the derivate source path. |
boolean |
isValid()
This method check the validation of the content of this class. |
void |
setFromDOM(Element element)
This method read the XML input stream part from a DOM part for the metadata of the document. |
void |
setIFSID(String set_ifsid)
This method set the value of derivate IFS ID. |
void |
setMainDoc(String set_maindoc)
This method set the value of derivate main document. |
void |
setSourcePath(String set_sourcepath)
This method set the value of derivate source path. |
| Methods inherited from class org.mycore.datamodel.metadata.MCRMetaDefault |
|---|
debug, debugDefault, decrementInherited, getDataPart, getInherited, getInheritedToString, getLang, getSubTag, getType, incrementInherited, setDataPart, setInherited, setLang, setSubTag, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRMetaIFS()
public MCRMetaIFS(String set_datapart,
String set_subtag,
String default_lang,
String set_sourcepath)
throws MCRException
set_datapart - the global part of the elements like 'metadata'
or 'service'set_subtag - the name of the subtagset_sourcepath - the sourcepath attribute
MCRException - if the set_subtag value, the set_classid value or
the set_categid are null, empty, too long or not a MCRObjectID| Method Detail |
|---|
public final String getSourcePath()
public final String getMainDoc()
public final String getIFSID()
public final void setSourcePath(String set_sourcepath)
set_sourcepath - the derivate source pathpublic final void setMainDoc(String set_maindoc)
set_maindoc - the derivate main document namepublic final void setIFSID(String set_ifsid)
set_ifsid - the derivate IFS ID
public final void setFromDOM(Element element)
throws MCRException
setFromDOM in interface MCRMetaInterfacesetFromDOM in class MCRMetaDefaultelement - a relevant JDOM element for the metadata
MCRException - if the set_sourcepath value is null or empty
public final Element createXML()
throws MCRException
createXML in interface MCRMetaInterfacecreateXML in class MCRMetaDefaultMCRException - if the content of this class is not validpublic final boolean isValid()
isValid in interface MCRMetaInterfaceisValid in class MCRMetaDefaultpublic final Object clone()
clone in interface MCRMetaInterfaceclone in class MCRMetaDefault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||