|
||||||||||
| 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.MCRMetaPersonName
public final class MCRMetaPersonName
This class implements all methods for handling with the MCRMetaPersonName part of a metadata object. The MCRMetaPersonName class represents a natural person specified by a list of names.
| 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 | |
|---|---|
MCRMetaPersonName()
This is the constructor. |
|
MCRMetaPersonName(String set_datapart,
String set_subtag,
String default_lang,
String set_type,
int set_inherted,
String set_firstname,
String set_callname,
String set_surname,
String set_fullname,
String set_academic,
String set_peerage,
String set_prefix)
This is the constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
This method make a clone of this class. |
Element |
createXML()
This method creates a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaPersonName definition for the given subtag. |
void |
debug()
This method put debug data to the logger (for the debug mode). |
String |
getAcademic()
This method get the academic text element. |
String |
getCallName()
This method get the callname text element. |
String |
getFirstName()
This method get the firstname text element. |
String |
getFullName()
This method get the fullname text element. |
String |
getPeerage()
This method get the peerage text element. |
String |
getPrefix()
This method get the prefix text element. |
String |
getSurName()
This method get the surname text element. |
boolean |
isValid()
This method checks the validation of the content of this class. |
void |
set(String set_firstname,
String set_callname,
String set_surname,
String set_fullname,
String set_academic,
String set_peerage,
String set_prefix)
This methode set all name componets. |
void |
setFromDOM(Element element)
This method reads the XML input stream part from a DOM part for the metadata of the document. |
| 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 |
| Constructor Detail |
|---|
public MCRMetaPersonName()
public MCRMetaPersonName(String set_datapart,
String set_subtag,
String default_lang,
String set_type,
int set_inherted,
String set_firstname,
String set_callname,
String set_surname,
String set_fullname,
String set_academic,
String set_peerage,
String set_prefix)
throws MCRException
set_datapart - the global part of the elements like 'metadata'
or 'service'set_subtag - the name of the subtagdefault_lang - the default languageset_type - the optional type stringset_inherted - a value >= 0set_firstname - the first nameset_callname - the callnameset_surname - the surnameset_fullname - the fullnameset_academic - the academic titleset_peerage - the peerage titleset_prefix - the prefix title
MCRException - if the parameter values are invalid| Method Detail |
|---|
public final void set(String set_firstname,
String set_callname,
String set_surname,
String set_fullname,
String set_academic,
String set_peerage,
String set_prefix)
set_firstname - the first nameset_callname - the callnameset_surname - the surnameset_fullname - the fullnameset_academic - the academic titleset_peerage - the peerage titleset_prefix - the prefix titlepublic final String getFirstName()
public final String getCallName()
public final String getSurName()
public final String getFullName()
public final String getAcademic()
public final String getPeerage()
public final String getPrefix()
public final void setFromDOM(Element element)
setFromDOM in interface MCRMetaInterfacesetFromDOM in class MCRMetaDefaultelement - a relevant JDOM element for the metadata
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 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 | |||||||||