protected void addAllowedValuesToDescription ( ModelNode result , ParameterValidator validator ) { if ( allowedValues != null ) { for ( ModelNode allowedValue : allowedValues ) { result . get ( ModelDescriptionConstants . ALLOWED ) . add ( allowedValue ) ; } } else if ( validator instanceof AllowedValuesValidator ) { AllowedValuesValidator avv = ( AllowedValuesValidator ) validator ; List < ModelNode > allowed = avv . getAllowedValues ( ) ; if ( allowed != null ) { for ( ModelNode ok : allowed ) { result . get ( ModelDescriptionConstants . ALLOWED ) . add ( ok ) ; } } } }
Adds the allowed values . Override for attributes who should not use the allowed values .