|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.metadata.MCRMetaDefault
public abstract class MCRMetaDefault
This class implements any methods for handling the basic data for all metadata classes of the metadata objects. The methods createXML() and createTypedContent() and createTextSearch() are abstract methods.
| Field Summary | |
|---|---|
protected String |
datapart
|
protected static String |
DEFAULT_DATAPART
|
protected static int |
DEFAULT_INHERITED
|
static int |
DEFAULT_LANG_LENGTH
|
protected static String |
DEFAULT_LANGUAGE
|
static int |
DEFAULT_STRING_LENGTH
|
static int |
DEFAULT_TYPE_LENGTH
|
protected int |
inherited
|
protected String |
lang
|
(package private) static Logger |
LOGGER
|
protected static String |
NL
|
protected String |
subtag
|
protected String |
type
|
| Constructor Summary | |
|---|---|
MCRMetaDefault()
This is the constructor. |
|
MCRMetaDefault(String default_lang)
This is the constructor. |
|
MCRMetaDefault(String set_datapart,
String set_subtag,
String default_lang,
String set_type,
int set_inherited)
This is the constructor. |
|
| Method Summary | |
|---|---|
abstract Object |
clone()
This method make a clone of this class. |
abstract Element |
createXML()
This abstract method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMeta... |
void |
debug()
This method put debug data to the logger (for the debug mode). |
void |
debugDefault()
This method put common debug data to the logger (for the debug mode). |
void |
decrementInherited()
This method decrements the inherited value with 1. |
String |
getDataPart()
This method get the datapart element. |
int |
getInherited()
This method get the inherited element. |
String |
getInheritedToString()
This method get the inherited element. |
String |
getLang()
This method get the language element. |
String |
getSubTag()
This method get the subtag element. |
String |
getType()
This method get the type element. |
void |
incrementInherited()
This method increments the inherited value with 1. |
boolean |
isValid()
This method check the validation of the content of this class. |
void |
setDataPart(String set_datapart)
This method set the datapart element. |
void |
setFromDOM(Element element)
This method read the XML input stream part from a DOM part for the metadata of the document. |
void |
setInherited(int value)
This method set the inherited level. |
void |
setLang(String default_lang)
This method set the language element. |
void |
setSubTag(String set_subtag)
This method set the subtag element. |
void |
setType(String set_type)
This method set the type element. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_LANG_LENGTH
public static final int DEFAULT_TYPE_LENGTH
public static final int DEFAULT_STRING_LENGTH
protected static final String NL
protected static final String DEFAULT_LANGUAGE
protected static final String DEFAULT_DATAPART
protected static final int DEFAULT_INHERITED
static Logger LOGGER
protected String subtag
protected String lang
protected String type
protected int inherited
protected String datapart
| Constructor Detail |
|---|
public MCRMetaDefault()
public MCRMetaDefault(String default_lang)
default_lang - the default language
public MCRMetaDefault(String set_datapart,
String set_subtag,
String default_lang,
String set_type,
int set_inherited)
throws MCRException
set_datapart - the data part nameset_subtag - the name of the subtagdefault_lang - the default languageset_type - the optional type stringset_inherited - a int value , > 0 if the data are inherited,
else = 0.
MCRException - if the set_subtag value is null or empty| Method Detail |
|---|
public final void setInherited(int value)
setInherited in interface MCRMetaInterfacevalue - the inherited level value, if it is < 0, 0 was setpublic final void incrementInherited()
incrementInherited in interface MCRMetaInterfacepublic final void decrementInherited()
decrementInherited in interface MCRMetaInterfacepublic final void setLang(String default_lang)
setLang in interface MCRMetaInterfacedefault_lang - the default language
public final void setSubTag(String set_subtag)
throws MCRException
setSubTag in interface MCRMetaInterfaceset_subtag - the subtag
MCRException - if the set_subtag value is null or emptypublic final void setType(String set_type)
setType in interface MCRMetaInterfaceset_type - the optional typepublic final void setDataPart(String set_datapart)
set_datapart - the data part namepublic final int getInherited()
getInherited in interface MCRMetaInterfacepublic final String getInheritedToString()
getInheritedToString in interface MCRMetaInterfacepublic final String getLang()
getLang in interface MCRMetaInterfacepublic final String getSubTag()
getSubTag in interface MCRMetaInterfacepublic final String getType()
getType in interface MCRMetaInterfacepublic final String getDataPart()
public void setFromDOM(Element element)
throws MCRException
setFromDOM in interface MCRMetaInterfaceelement - a relevant DOM element for the metadata
MCRException - if the set_subtag value is null or empty
public abstract Element createXML()
throws MCRException
createXML in interface MCRMetaInterfaceMCRException - if the content of this class is not validpublic boolean isValid()
isValid in interface MCRMetaInterfacepublic void debug()
debug in interface MCRMetaInterfacepublic final void debugDefault()
public abstract Object clone()
MCRMetaInterface
clone in interface MCRMetaInterfaceclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||