|
||||||||||
| 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.MCRMetaISBN
public class MCRMetaISBN
This class implements all method for handling with the MCRMetaLangText part of a metadata object. The MCRMetaISBN class present a single item, which holds a ISBN.
| Field Summary | |
|---|---|
protected boolean |
invalid
|
protected String |
isbn
|
protected int |
sum1
|
protected int |
sum2
|
| 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 | |
|---|---|
MCRMetaISBN()
This is the constructor. |
|
MCRMetaISBN(String set_datapart,
String set_subtag,
int set_inherted,
String set_isbn)
This is the constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
This method make a clone of this class. |
Element |
createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLangText definition for the given subtag. |
void |
debug()
This method put debug data to the logger (for the debug mode). |
String |
getISBN()
This method get the ISBN element. |
protected void |
getSums()
calculates the sum of the ISBN to check later the correctness |
boolean |
isValid()
This method check the validation of the content of this class. |
void |
set(String set_isbn)
This method set the ISBN. |
void |
setFromDOM(Element element)
This method read the XML input stream part from a DOM part for the metadata of the document. |
void |
setISBN(String set_isbn)
This method set the isbn. |
| Methods inherited from class org.mycore.datamodel.metadata.MCRMetaDefault |
|---|
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 |
| Field Detail |
|---|
protected String isbn
protected int sum1
protected int sum2
protected boolean invalid
| Constructor Detail |
|---|
public MCRMetaISBN()
public MCRMetaISBN(String set_datapart,
String set_subtag,
int set_inherted,
String set_isbn)
throws MCRException
set_datapart - the global part of the elements like 'metadata'
or 'service'set_subtag - the name of the subtagset_inherted - a value >= 0set_isbn - the ISBN string
MCRException - if the set_subtag value is null or empty| Method Detail |
|---|
public final void set(String set_isbn)
set_isbn - the new ISBN stringpublic final void setISBN(String set_isbn)
set_isbn - the new ISBN stringpublic final String getISBN()
public void setFromDOM(Element element)
setFromDOM in interface MCRMetaInterfacesetFromDOM in class MCRMetaDefaultelement - a relevant JDOM element for the metadata
public Element createXML()
throws MCRException
createXML in interface MCRMetaInterfacecreateXML in class MCRMetaDefaultMCRException - if the content of this class is not validpublic boolean isValid()
isValid in interface MCRMetaInterfaceisValid in class MCRMetaDefaultprotected void getSums()
public Object clone()
clone in interface MCRMetaInterfaceclone in class MCRMetaDefaultpublic final void debug()
debug in interface MCRMetaInterfacedebug in class MCRMetaDefault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||