org.jbpm.services.task.impl.model

## Class I18NTextImpl

- java.lang.Object
- - org.jbpm.services.task.impl.model.I18NTextImpl

- All Implemented Interfaces:
    Externalizable, Serializable, org.kie.api.task.model.I18NText, org.kie.internal.task.api.model.InternalI18NText

      @Entity
      public class I18NTextImpl
      extends Object
      implements org.kie.internal.task.api.model.InternalI18NText

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `I18NTextImpl()`
    `I18NTextImpl(String language, String text)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `Long` | `getId()`
    `String` | `getLanguage()`
    `static String` | `getLocalText(List<I18NTextImpl> list, String prefferedLanguage, String defaultLanguage)`
    `String` | `getText()`
    `int` | `hashCode()`
    `void` | `readExternal(ObjectInput in)`
    `void` | `setId(Long id)`
    `void` | `setLanguage(String language)`
    `void` | `setText(String text)`
    `void` | `writeExternal(ObjectOutput out)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### I18NTextImpl

          public I18NTextImpl()

    - #### I18NTextImpl

          public I18NTextImpl(String language,
                      String text)

  - ### Method Detail

    - #### writeExternal

          public void writeExternal(ObjectOutput out)
                             throws IOException

      Specified by:
        `writeExternal` in interface `Externalizable`
      Throws:
        `IOException`

    - #### readExternal

          public void readExternal(ObjectInput in)
                            throws IOException,
                                   ClassNotFoundException

      Specified by:
        `readExternal` in interface `Externalizable`
      Throws:
        `IOException`
        `ClassNotFoundException`

    - #### getId

          public Long getId()

      Specified by:
        `getId` in interface `org.kie.api.task.model.I18NText`

    - #### setId

          public void setId(Long id)

      Specified by:
        `setId` in interface `org.kie.internal.task.api.model.InternalI18NText`

    - #### getLanguage

          public String getLanguage()

      Specified by:
        `getLanguage` in interface `org.kie.api.task.model.I18NText`

    - #### setLanguage

          public void setLanguage(String language)

      Specified by:
        `setLanguage` in interface `org.kie.internal.task.api.model.InternalI18NText`

    - #### getText

          public String getText()

      Specified by:
        `getText` in interface `org.kie.api.task.model.I18NText`

    - #### setText

          public void setText(String text)

      Specified by:
        `setText` in interface `org.kie.internal.task.api.model.InternalI18NText`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### getLocalText

          public static String getLocalText(List<I18NTextImpl> list,
                            String prefferedLanguage,
                            String defaultLanguage)

Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.