Class TextSet

java.lang.Object
mc.core.model.i18n.TextSet
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, Resource

@Entity public class TextSet extends Object implements IBaseEntity, Resource
container entity for a text translated in different locales with it's own lifecycle. basic object of textpool feature
See Also:
  • Constructor Details

    • TextSet

      public TextSet()
    • TextSet

      public TextSet(String textType, boolean shared)
    • TextSet

      public TextSet(TextSet textSet)
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getTextType

      public String getTextType()
    • getConcept

      public String getConcept()
    • setConcept

      public void setConcept(String concept)
    • getExternalKey

      public String getExternalKey()
    • setExternalKey

      public void setExternalKey(String externalKey)
    • isShared

      public boolean isShared()
    • isProtect

      public boolean isProtect()
    • setProtect

      public void setProtect(boolean protect)
    • getDateCreated

      public Calendar getDateCreated()
    • getDateModified

      public Calendar getDateModified()
    • getValues

      public List<TextValue> getValues()
      Specified by:
      getValues in interface Resource
    • setValues

      public void setValues(List<TextValue> values)
    • getVersions

      public List<TextVersion> getVersions()
    • setVersions

      public void setVersions(List<TextVersion> versions)
    • getValue

      public TextValue getValue(Locale locale)
      Specified by:
      getValue in interface Resource
    • getText

      public String getText(Locale locale)
      Specified by:
      getText in interface Resource
    • getLocales

      public List<Locale> getLocales()
    • getVersion

      public TextVersion getVersion(Locale locale)
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      for testing/debugging
      Overrides:
      toString in class Object