Package se.conciliate.extensions.store
Interface MTAttribute
- All Superinterfaces:
MTAttributeHeader
Full interface for attributes.
- Since:
- 5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the attribute of all data.getType()
Returns the attribute type that this attribute belongs to.void
Sets the data in the current language.void
setData
(MTLanguageHeader language, String data) Sets the data in a given language.void
setTranslated
(MTLanguage lang, boolean translated) Marks this attribute as translated in the given language.Methods inherited from interface se.conciliate.extensions.store.MTAttributeHeader
expand, getAttributeTypeUUID, getData, getData, getID, getUUID, isEmpty, isTranslated, isTranslated
-
Method Details
-
getType
MTAttributeTypeHeader getType()Returns the attribute type that this attribute belongs to.- Returns:
- The attribute's attribute type.
- Since:
- 5.0
-
setData
Sets the data in the current language.- Parameters:
data
- The new data.- Since:
- 5.0
-
setData
Sets the data in a given language.- Parameters:
language
- The language.data
- The new data.- Since:
- 5.0
-
setTranslated
Marks this attribute as translated in the given language.- Parameters:
lang
- The language.translated
- The state to set.- Since:
- 5.0
-
clear
void clear()Clears the attribute of all data.- Since:
- 5.0
-