Enum NoAttribute.NoAttrScope
- java.lang.Object
-
- java.lang.Enum<NoAttribute.NoAttrScope>
-
- net.sourceforge.pmd.lang.rule.xpath.NoAttribute.NoAttrScope
-
- All Implemented Interfaces:
Serializable
,Comparable<NoAttribute.NoAttrScope>
- Enclosing class:
- NoAttribute
public static enum NoAttribute.NoAttrScope extends Enum<NoAttribute.NoAttrScope>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
All attributes are suppressed, except those fromNode
andAbstractNode
.INHERITED
Only attributes inherited from superclasses or superinterfaces are filtered out (except those fromNode
andAbstractNode
).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NoAttribute.NoAttrScope
valueOf(String name)
Returns the enum constant of this type with the specified name.static NoAttribute.NoAttrScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INHERITED
public static final NoAttribute.NoAttrScope INHERITED
Only attributes inherited from superclasses or superinterfaces are filtered out (except those fromNode
andAbstractNode
). Attributes defined here, or overridden, are kept. Attributes can be suppressed individually with aNoAttribute
on their accessor.
-
ALL
public static final NoAttribute.NoAttrScope ALL
All attributes are suppressed, except those fromNode
andAbstractNode
. This extendsINHERITED
to the attributes defined in this class. Note that subclasses of the current class also will see those attributes suppressed unless they override them.
-
-
Method Detail
-
values
public static NoAttribute.NoAttrScope[] 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 (NoAttribute.NoAttrScope c : NoAttribute.NoAttrScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoAttribute.NoAttrScope 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 nameNullPointerException
- if the argument is null
-
-