Class Translation

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class Translation
    extends java.lang.Object
    implements java.io.Serializable
    Deprecated.

    This class has been replaced by Translation. The com.werkii.planning.ejb.gui package and all it's classes will be removed in PublishingServer 2024/2

    List of translations for a key.

    Exposes a fluid interface.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Translation()
      Deprecated.
       
      Translation​(java.lang.String identifier, java.util.List<Entry> entries)
      Deprecated.
       
    • Constructor Detail

      • Translation

        public Translation()
        Deprecated.
      • Translation

        public Translation​(java.lang.String identifier,
                           java.util.List<Entry> entries)
        Deprecated.
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Deprecated.
        Get the key for the translations.
        Returns:
      • setIdentifier

        public Translation setIdentifier​(java.lang.String identifier)
        Deprecated.
        Set the key for the translations.
        Parameters:
        identifier -
        Returns:
        Translation for chaining.
      • getEntries

        public java.util.List<Entry> getEntries()
        Deprecated.
        Get all localized values for the key.
        Returns:
      • setEntries

        public Translation setEntries​(java.util.List<Entry> entries)
        Deprecated.
        Set the localized values for the key.
        Parameters:
        entries -
        Returns:
        Translation for chaining.
      • addEntry

        public Translation addEntry​(Entry entry)
        Deprecated.
        Add a translation entry for the key.
        Parameters:
        entry -
        Returns:
        Translation for chaining.
      • addEntry

        public Translation addEntry​(java.lang.String lang,
                                    java.lang.String value)
        Deprecated.
        Add a translation entry for the key.
        Parameters:
        lang - language of the new entry
        value - value of the new entry
        Returns:
        Translation for chaining.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object