Class Jingle.Reason

  • Enclosing class:
    Jingle

    public static final class Jingle.Reason
    extends Object
    The implementation of the <reason/> element.
    See Also:
    7.4 Reason Element
    • Constructor Detail

      • Reason

        public Reason​(Jingle.Reason.Condition condition)
        Creates a reason element with a defined condition.
        Parameters:
        condition - The condition.
      • Reason

        public Reason​(Jingle.Reason.Condition condition,
                      String text)
        Creates a reason element with a defined condition and a text.
        Parameters:
        condition - The condition.
        text - The optional text for the reason.
      • Reason

        public Reason​(Jingle.Reason.Condition condition,
                      String text,
                      Object extension)
        Creates a reason element with a defined condition and a text.
        Parameters:
        condition - The condition.
        text - The optional text for the reason.
        extension - An object to provide more detailed information about the reason.
    • Method Detail

      • getText

        public String getText()
        Gets human-readable information about the reason for the action.
        Returns:
        The information.
      • getExtension

        public Object getExtension()
        Gets the extension, which defines more detailed information about the reason.
        Returns:
        The reason.