Package org.jboss.as.controller.transform.description.DiscardAttributeChecker

Examples of org.jboss.as.controller.transform.description.DiscardAttributeChecker.DiscardAttributeValueChecker


     * Reject the attributes if they are defined or discard them if they are undefined or set to their default value.
     */
    private static void rejectDefinedAttributeWithDefaultValue(ResourceTransformationDescriptionBuilder builder, AttributeDefinition... attrs) {
        for (AttributeDefinition attr : attrs) {
            builder.getAttributeBuilder()
                    .setDiscard(new DiscardAttributeValueChecker(attr.getDefaultValue()), attr)
                    .addRejectCheck(DEFINED, attr);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.transform.description.DiscardAttributeChecker.DiscardAttributeValueChecker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.