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
     
  • Field Summary

    Fields inherited from interface org.jboss.as.controller.transform.description.DiscardAttributeChecker

    ALWAYS, DEFAULT_VALUE, UNDEFINED
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    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)
     
    boolean
    isResourceAttributeDiscardable(org.jboss.as.controller.PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.as.controller.transform.TransformationContext context)
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static DiscardSingletonListAttributeChecker[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 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