Package org.jboss.as.controller
Class SimpleListAttributeDefinition.Builder
java.lang.Object
org.jboss.as.controller.AbstractAttributeDefinitionBuilder<BUILDER,ATTRIBUTE>
org.jboss.as.controller.ListAttributeDefinition.Builder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition>
org.jboss.as.controller.SimpleListAttributeDefinition.Builder
- Enclosing class:
- SimpleListAttributeDefinition
public static class SimpleListAttributeDefinition.Builder
extends ListAttributeDefinition.Builder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create theAttributeDefinitionof(String name, AttributeDefinition valueType) setMaxSize(int maxSize) Sets a maximum size for a collection-type attribute or one whose value is a string or byte[].setMinSize(int minSize) Sets a minimum size description for a collection-type attribute or one whose value is a string or byte[].setWrapXmlList(boolean wrap) Methods inherited from class org.jboss.as.controller.ListAttributeDefinition.Builder
getAllowNullElement, getElementValidator, getMaxSize, getMinSize, getValidator, setAllowDuplicates, setAllowNullElement, setElementValidator, setListValidator, setValidatorMethods inherited from class org.jboss.as.controller.AbstractAttributeDefinitionBuilder
addAccessConstraint, addAlternatives, addArbitraryDescriptor, addFlag, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeGroup, getAttributeMarshaller, getCapabilityReferenceRecorder, getCorrector, getDefaultValue, getDeprecated, getFlags, getMeasurementUnit, getName, getNullSignificant, getParser, getRequires, getStability, getType, getUndefinedMetricValue, getXmlName, isAllowExpression, isFlagPresent, isNillable, isResourceOnly, removeAlternatives, removeFlag, setAccessConstraints, setAllowedValues, setAllowedValues, setAllowedValues, setAllowExpression, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCorrector, setDefaultValue, setDeprecated, setDeprecated, setExpressionsDeprecated, setFlags, setMeasurementUnit, setNullSignificant, setRequired, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setRuntimeServiceNotRequired, setStability, setStorageRuntime, setUndefinedMetricValue, setXmlName
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
of
-
setWrapXmlList
-
build
Description copied from class:AbstractAttributeDefinitionBuilderCreate theAttributeDefinition- Specified by:
buildin classAbstractAttributeDefinitionBuilder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition> - Returns:
- the attribute definition. Will not return
null
-
setMaxSize
Description copied from class:AbstractAttributeDefinitionBuilderSets a maximum size for a collection-type attribute or one whose value is a string or byte[]. The value represents the maximum number of elements in the collection, or the maximum length of the string or array. It does not represent a maximum value for a numeric attribute and should not be configured for numeric attributes.- Overrides:
setMaxSizein classAbstractAttributeDefinitionBuilder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition> - Parameters:
maxSize- the maximum size- Returns:
- a builder that can be used to continue building the attribute definition
-
setMinSize
Description copied from class:AbstractAttributeDefinitionBuilderSets a minimum size description for a collection-type attribute or one whose value is a string or byte[]. The value represents the minimum number of elements in the collection, or the minimum length of the string or array. It does not represent a minimum value for a numeric attribute and should not be configured for numeric attributes.- Overrides:
setMinSizein classAbstractAttributeDefinitionBuilder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition> - Parameters:
minSize- the minimum size- Returns:
- a builder that can be used to continue building the attribute definition
-