Enum MessagePatternUtil.MessageContentsNode.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARG
      This is an ArgNode representing a message argument (downcast and use specific methods).
      REPLACE_NUMBER
      This Node represents a place in a plural argument's variant where the formatted (plural-offset) value is to be put.
      TEXT
      This is a TextNode containing literal text (downcast and call getText()).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Type()  
    • Constructor Detail

      • Type

        private Type()
    • Method Detail

      • values

        public static MessagePatternUtil.MessageContentsNode.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MessagePatternUtil.MessageContentsNode.Type c : MessagePatternUtil.MessageContentsNode.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MessagePatternUtil.MessageContentsNode.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null