Package org.mycore.datamodel.metadata
Class MCRMetaHistoryDate.MCRMetaHistoryDateText
java.lang.Object
org.mycore.datamodel.metadata.MCRMetaHistoryDate.MCRMetaHistoryDateText
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- MCRMetaHistoryDate
This class describes the structure of pair of language an text. The
language notation is in the ISO format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
This method check the equivalence of lang and text between this object and a given MCRMetaHistoryDateText object.getLang()
This method get the language element as String of ISO code.getText()
This method get the text element as String.boolean
isValid()
This method validate the content.void
Deprecated.void
Deprecated.void
This method set the text element with the corresponding language.
-
Constructor Details
-
MCRMetaHistoryDateText
public MCRMetaHistoryDateText() -
MCRMetaHistoryDateText
-
-
Method Details
-
getText
This method get the text element as String.- Returns:
- the text
-
getLang
This method get the language element as String of ISO code.- Returns:
- the language
-
setText
This method set the text element with the corresponding language.- Parameters:
text
- the text Stringlang
- the language String
-
setText
Deprecated.This method set the text element.- Parameters:
text
- the text String of a date value
-
setLang
Deprecated.This method set the lang element.- Parameters:
lang
- the language String of a date value
-
isValid
public boolean isValid()This method validate the content. If lang and text are not empty, it return true otherwise it return false.- Returns:
- true if the content is valid.
-
equals
This method check the equivalence of lang and text between this object and a given MCRMetaHistoryDateText object.- Parameters:
obj
- a MCRMetaHistoryDateText instance- Returns:
- true if both parts are equal
-
clone
-