JavaScript is disabled on your browser.
net.sourceforge.pmd

Enum RulePriority

    • Method Detail

      • values

        public static RulePriority[] 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 (RulePriority c : RulePriority.values())
         System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RulePriority valueOf(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getPriority

        public int getPriority()
        Get the priority value as a number. This is the value to be used in the externalized form of a priority (e.g. in RuleSet XML).
        Returns:
        The int value of the priority.
      • getName

        public String getName()
        Get the descriptive name of this priority.
        Returns:
        The descriptive name.
      • valueOf

        public static RulePriority valueOf(int priority)
        Get the priority which corresponds to the given number as returned by getPriority(). If the number is an invalid value, then LOW will be returned.
        Parameters:
        priority - The numeric priority value.
        Returns:
        The priority.

Copyright © 2002-2014 InfoEther. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /