Interface Translation

    • Method Detail

      • getTranslation

        String getTranslation()
        Get the value for Translation. (Translation to show the user.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setTranslation

        void setTranslation​(String newTranslation)
        Set the value for Translation. (Translation to show the user.) This value is mandatory.
        Parameters:
        newTranslation - the new value for Translation. If this is null, then the object cannot be persisted.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getLanguage

        Language getLanguage()
        Get the Language.
        Returns:
        Language
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • getTranslationKey

        TranslationKey getTranslationKey()
        Get the TranslationKey.
        Returns:
        TranslationKey
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.