Enum DiscardSingletonListAttributeChecker
- java.lang.Object
-
- java.lang.Enum<DiscardSingletonListAttributeChecker>
-
- org.jboss.as.clustering.controller.transform.DiscardSingletonListAttributeChecker
-
- All Implemented Interfaces:
Serializable,Comparable<DiscardSingletonListAttributeChecker>,org.jboss.as.controller.transform.description.DiscardAttributeChecker
public enum DiscardSingletonListAttributeChecker extends Enum<DiscardSingletonListAttributeChecker> implements org.jboss.as.controller.transform.description.DiscardAttributeChecker
Discards an attribute if its list value contains a single entry.- Author:
- Paul Ferraro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.description.DiscardAttributeChecker
org.jboss.as.controller.transform.description.DiscardAttributeChecker.DefaultDiscardAttributeChecker, org.jboss.as.controller.transform.description.DiscardAttributeChecker.DiscardAttributeValueChecker
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDiscardExpressions()booleanisDiscardUndefined()booleanisOperationParameterDiscardable(org.jboss.as.controller.PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.transform.TransformationContext context)booleanisResourceAttributeDiscardable(org.jboss.as.controller.PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.as.controller.transform.TransformationContext context)static DiscardSingletonListAttributeCheckervalueOf(String name)Returns the enum constant of this type with the specified name.static DiscardSingletonListAttributeChecker[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DiscardSingletonListAttributeChecker INSTANCE
-
-
Method Detail
-
values
public static DiscardSingletonListAttributeChecker[] 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 (DiscardSingletonListAttributeChecker c : DiscardSingletonListAttributeChecker.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiscardSingletonListAttributeChecker 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
-
isDiscardExpressions
public boolean isDiscardExpressions()
- Specified by:
isDiscardExpressionsin interfaceorg.jboss.as.controller.transform.description.DiscardAttributeChecker
-
isDiscardUndefined
public boolean isDiscardUndefined()
- Specified by:
isDiscardUndefinedin interfaceorg.jboss.as.controller.transform.description.DiscardAttributeChecker
-
isOperationParameterDiscardable
public boolean isOperationParameterDiscardable(org.jboss.as.controller.PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.transform.TransformationContext context)- Specified by:
isOperationParameterDiscardablein interfaceorg.jboss.as.controller.transform.description.DiscardAttributeChecker
-
isResourceAttributeDiscardable
public boolean isResourceAttributeDiscardable(org.jboss.as.controller.PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.as.controller.transform.TransformationContext context)- Specified by:
isResourceAttributeDiscardablein interfaceorg.jboss.as.controller.transform.description.DiscardAttributeChecker
-
-