@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
@Override public List<ModelNode> getAllowedValues() { return (delegate instanceof AllowedValuesValidator) ? ((AllowedValuesValidator) delegate).getAllowedValues() : null; } }
/** * Adds the allowed values. Override for attributes who should not use the allowed values. * * @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); } } } }
/** * Adds the allowed values. Override for attributes who should not use the allowed values. * * @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); } } } }
/** * Adds the allowed values. Override for attributes who should not use the allowed values. * * @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 (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); } } } }
@Override public List<ModelNode> getAllowedValues() { List<ModelNode> allowed = null; for (ParameterValidator validator : validators) { if (validator instanceof AllowedValuesValidator) { AllowedValuesValidator avv = (AllowedValuesValidator) validator; List<ModelNode> val = avv.getAllowedValues(); if (val != null) { if (allowed == null) { allowed = val; } else { List<ModelNode> copy = new ArrayList<ModelNode>(); for (ModelNode existing : allowed) { if (val.contains(existing)) { copy.add(existing); } } allowed = copy; } } } } return allowed; } }
@Override public List<ModelNode> getAllowedValues() { List<ModelNode> allowed = null; for (ParameterValidator validator : validators) { if (validator instanceof AllowedValuesValidator) { AllowedValuesValidator avv = (AllowedValuesValidator) validator; List<ModelNode> val = avv.getAllowedValues(); if (val != null) { if (allowed == null) { allowed = val; } else { List<ModelNode> copy = new ArrayList<ModelNode>(); for (ModelNode existing : allowed) { if (val.contains(existing)) { copy.add(existing); } } allowed = copy; } } } } return allowed; } }
@Override public List<ModelNode> getAllowedValues() { List<ModelNode> allowed = null; for (ParameterValidator validator : validators) { if (validator instanceof AllowedValuesValidator) { AllowedValuesValidator avv = (AllowedValuesValidator) validator; List<ModelNode> val = avv.getAllowedValues(); if (val != null) { if (allowed == null) { allowed = val; } else { List<ModelNode> copy = new ArrayList<ModelNode>(); for (ModelNode existing : allowed) { if (val.contains(existing)) { copy.add(existing); } } allowed = copy; } } } } return allowed; } }
@Override public List<ModelNode> getAllowedValues() { List<ModelNode> allowed = null; for (ParameterValidator validator : validators) { if (validator instanceof AllowedValuesValidator) { AllowedValuesValidator avv = (AllowedValuesValidator) validator; List<ModelNode> val = avv.getAllowedValues(); if (val != null) { if (allowed == null) { allowed = val; } else { List<ModelNode> copy = new ArrayList<ModelNode>(); for (ModelNode existing : allowed) { if (val.contains(existing)) { copy.add(existing); } } allowed = copy; } } } } return allowed; } }
/** * Adds the allowed values. Override for attributes who should not use the allowed values. * * @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 (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); } } } }