Enum Class DiscardSingletonListAttributeChecker

java.lang.Object
java.lang.Enum<DiscardSingletonListAttributeChecker>
org.jboss.as.clustering.controller.transform.DiscardSingletonListAttributeChecker
All Implemented Interfaces:
Serializable, Comparable<DiscardSingletonListAttributeChecker>, Constable, 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
  • Enum Constant Details

  • Method Details

    • values

      public static DiscardSingletonListAttributeChecker[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DiscardSingletonListAttributeChecker valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isDiscardExpressions

      public boolean isDiscardExpressions()
      Specified by:
      isDiscardExpressions in interface org.jboss.as.controller.transform.description.DiscardAttributeChecker
    • isDiscardUndefined

      public boolean isDiscardUndefined()
      Specified by:
      isDiscardUndefined in interface org.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:
      isOperationParameterDiscardable in interface org.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:
      isResourceAttributeDiscardable in interface org.jboss.as.controller.transform.description.DiscardAttributeChecker