public abstract static class ListAttributeDefinition.Builder<BUILDER extends ListAttributeDefinition.Builder,ATTRIBUTE extends ListAttributeDefinition> extends AbstractAttributeDefinitionBuilder<BUILDER,ATTRIBUTE>
accessConstraints, allowedValues, allowExpression, allowNull, alternatives, arbitraryDescriptors, attributeGroup, attributeMarshaller, corrector, defaultValue, deprecated, flags, maxSize, measurementUnit, minSize, name, nullSignificant, parser, referenceRecorder, requires, resourceOnly, type, validateNull, validator, xmlName| Modifier | Constructor and Description |
|---|---|
|
Builder(ListAttributeDefinition basis) |
protected |
Builder(String attributeName) |
protected |
Builder(String attributeName,
boolean optional) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowNullElement()
Gets whether undefined list elements are valid.
|
ParameterValidator |
getElementValidator()
Gets the validator to use for validating list elements.
|
int |
getMaxSize() |
int |
getMinSize() |
ParameterValidator |
getValidator() |
BUILDER |
setAllowDuplicates(boolean allowDuplicates)
toggles default validator strategy to allow / not allow duplicate elements in list
|
BUILDER |
setAllowNullElement(boolean allowNullElement)
Sets whether undefined list elements are valid.
|
BUILDER |
setElementValidator(ParameterValidator elementValidator)
Sets the validator to use for validating list elements.
|
BUILDER |
setListValidator(ParameterValidator validator)
Sets an overall validator for the list.
|
BUILDER |
setValidator(ParameterValidator validator)
Overrides the superclass to simply delegate to
setElementValidator(org.jboss.as.controller.operations.validation.ParameterValidator). |
addAccessConstraint, addAlternatives, addArbitraryDescriptor, addFlag, build, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeGroup, getAttributeMarshaller, getCapabilityReferenceRecorder, getCorrector, getDefaultValue, getDeprecated, getFlags, getMeasurementUnit, getName, getNullSignificant, getParser, getRequires, getType, getUndefinedMetricValue, getXmlName, isAllowExpression, isAllowNull, isFlagPresent, isResourceOnly, isValidateNull, removeAlternatives, removeFlag, setAccessConstraints, setAllowedValues, setAllowedValues, setAllowedValues, setAllowExpression, setAllowNull, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCorrector, setDefaultValue, setDeprecated, setDeprecated, setExpressionsDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setName, setNullSignficant, setNullSignificant, setRequired, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setRuntimeServiceNotRequired, setStorageRuntime, setType, setUndefinedMetricValue, setValidateNull, setXmlNameprotected Builder(String attributeName)
protected Builder(String attributeName, boolean optional)
public Builder(ListAttributeDefinition basis)
public ParameterValidator getElementValidator()
null if no validator has been setpublic final BUILDER setElementValidator(ParameterValidator elementValidator)
elementValidator - the validatorIllegalArgumentException - if elementValidator is nullpublic BUILDER setValidator(ParameterValidator validator)
setElementValidator(org.jboss.as.controller.operations.validation.ParameterValidator).
Use setListValidator(org.jboss.as.controller.operations.validation.ParameterValidator) to
set an overall validator for the list.setValidator in class AbstractAttributeDefinitionBuilder<BUILDER extends ListAttributeDefinition.Builder,ATTRIBUTE extends ListAttributeDefinition>validator - the validator. Cannot be nullIllegalArgumentException - if elementValidator is nullpublic BUILDER setListValidator(ParameterValidator validator)
validator - the validator. null is allowedpublic int getMinSize()
getMinSize in class AbstractAttributeDefinitionBuilder<BUILDER extends ListAttributeDefinition.Builder,ATTRIBUTE extends ListAttributeDefinition>public int getMaxSize()
getMaxSize in class AbstractAttributeDefinitionBuilder<BUILDER extends ListAttributeDefinition.Builder,ATTRIBUTE extends ListAttributeDefinition>public boolean getAllowNullElement()
setAllowNullElement(boolean)
has been called, that value is returned; otherwise the value of AbstractAttributeDefinitionBuilder.isAllowNull() is used.true if undefined list elements are validpublic BUILDER setAllowNullElement(boolean allowNullElement)
allowNullElement - whether undefined elements are validpublic BUILDER setAllowDuplicates(boolean allowDuplicates)
allowDuplicates - false if duplicates are not allowedpublic ParameterValidator getValidator()
getValidator in class AbstractAttributeDefinitionBuilder<BUILDER extends ListAttributeDefinition.Builder,ATTRIBUTE extends ListAttributeDefinition>Copyright © 2018 JBoss by Red Hat. All rights reserved.