Class MessageMethodBuilder.AptMessage

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AptMessage​(Message message, java.util.Properties expressionProperties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Message.Format format()
      The message format type for the message.
      boolean hasId()
      Checks if the message has an id that was provided.
      int id()
      The message id for the message to use.
      boolean inheritsId()
      Checks if the message id was inherited.
      java.lang.String toString()  
      java.lang.String value()
      A format string that can be used with the MessageMethod.Message.format().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • message

        private final Message message
      • messageValue

        private final java.lang.String messageValue
      • id

        private int id
      • hasId

        private boolean hasId
      • inheritsId

        private boolean inheritsId
    • Constructor Detail

      • AptMessage

        private AptMessage​(Message message,
                           java.util.Properties expressionProperties)
    • Method Detail

      • id

        public int id()
        Description copied from interface: MessageMethod.Message
        The message id for the message to use. Any id less than 0 will be ignored.
        Specified by:
        id in interface MessageMethod.Message
        Returns:
        the message id.
      • hasId

        public boolean hasId()
        Description copied from interface: MessageMethod.Message
        Checks if the message has an id that was provided. Returns true if the message id was specified or inherited, otherwise returns false.
        Specified by:
        hasId in interface MessageMethod.Message
        Returns:
        true if the message id was provided, otherwise false.
      • inheritsId

        public boolean inheritsId()
        Description copied from interface: MessageMethod.Message
        Checks if the message id was inherited. Returns true only if the message id is inherited, otherwise false is returned.
        Specified by:
        inheritsId in interface MessageMethod.Message
        Returns:
        true if the message id was inherited, otherwise false.
      • toString

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