Class Translation

    • Constructor Detail

      • Translation

        public Translation​(String text)
        Creates a Translation object with a given text.
        Parameters:
        text - the text of the translation.
      • Translation

        public Translation​(Translation original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
    • Method Detail

      • getId

        public String getId()
        Gets the id for this translation.
        Returns:
        the id for this translation (can be null).
      • setId

        public void setId​(String id)
        Sets the id for this translation.
        Parameters:
        id - the new id for this translation (can be null).
      • getRef

        public String getRef()
        Gets the reference for this translation.
        Returns:
        the reference for this translation (can be null).
      • setRef

        public void setRef​(String ref)
        Sets the reference for this translation.
        Parameters:
        ref - the new reference for this translation.
      • getText

        public String getText()
        Get the text of this field.
        Returns:
        the text of this field (can be null).
      • setText

        public void setText​(String text)
        Sets the text of this field.
        Parameters:
        text - the new text of this field (can be null).
      • getSource

        public String getSource()
        Gets the source of this field.
        Returns:
        the source of this field (can be null).
      • setSource

        public void setSource​(String source)
        sets the source of this field.
        Parameters:
        source - the new source of this field (can be null).
      • equals

        public boolean equals​(Object obj)
        Description copied from class: DataWithExtAttributes
        Indicates if this object is equals to a given one.
        Overrides:
        equals in class DataWithExtAttributes
        Parameters:
        obj - the other object to compare.
        Returns:
        true if the two objects are identical.