* @param result the node to add the allowed values to
* @param validator the validator to get the allowed values from
*/
protected void addAllowedValuesToDescription(ModelNode result, ParameterValidator validator) {
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);
}
}