org.mycore.datamodel.metadata
Class MCRMetaHistoryDate.MCRMetaHistoryDateText

java.lang.Object
  extended by org.mycore.datamodel.metadata.MCRMetaHistoryDate.MCRMetaHistoryDateText
Enclosing class:
MCRMetaHistoryDate

protected class MCRMetaHistoryDate.MCRMetaHistoryDateText
extends Object

This class describes the structure of pair of language an text. The language notation is in the ISO format.


Constructor Summary
MCRMetaHistoryDate.MCRMetaHistoryDateText()
           
MCRMetaHistoryDate.MCRMetaHistoryDateText(String datetext, String lang)
           
 
Method Summary
 String getLang()
          This method get the lang element as language field (String) .
 String getText()
          This method get the datetext element as field text (String) .
 boolean isValid()
          This mehtod validate the content.
 void setLang(String set_lang)
          This method set the lang element as language field (String) .
 void setText(String datetext)
          This method set the datetext element as field text (String) .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRMetaHistoryDate.MCRMetaHistoryDateText

public MCRMetaHistoryDate.MCRMetaHistoryDateText()

MCRMetaHistoryDate.MCRMetaHistoryDateText

public MCRMetaHistoryDate.MCRMetaHistoryDateText(String datetext,
                                                 String lang)
Method Detail

getText

public String getText()
This method get the datetext element as field text (String) .

Returns:
the datetext

setText

public void setText(String datetext)
This method set the datetext element as field text (String) .

Parameters:
datetext - the text String of a date value

getLang

public String getLang()
This method get the lang element as language field (String) .

Returns:
the lang

setLang

public void setLang(String set_lang)
This method set the lang element as language field (String) .

Parameters:
set_lang - the language String of a date value

isValid

public boolean isValid()
This mehtod validate the content. If lang and text are not empty, it return true otherwise it return false.

Returns:
true if the content is valid.