Class TextValue

java.lang.Object
mc.core.model.base.EntityText
mc.core.model.i18n.TextValue
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class TextValue extends EntityText implements IBaseEntity
entity for text in a locale. always owned by exactly one textSet
See Also:
  • Constructor Details

    • TextValue

      public TextValue()
    • TextValue

      public TextValue(String text, Locale locale, 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
    • getTextSet

      public TextSet getTextSet()
    • getLocale

      public Locale getLocale()
    • getDateCreated

      public Calendar getDateCreated()
    • getDateModified

      public Calendar getDateModified()
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion(int version)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • 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
    • prepareText

      public static String prepareText(String text)
      truncate text (includes removing tags) if longer than TEXT_COLUMN_LENGTH_IDX to prepare for search/compare