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 Constructor Description Builder(String name, AttributeDefinition valueType)Builder(SimpleListAttributeDefinition basis)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleListAttributeDefinitionbuild()Create theAttributeDefinitionstatic SimpleListAttributeDefinition.Builderof(String name, AttributeDefinition valueType)SimpleListAttributeDefinition.BuildersetMaxSize(int maxSize)Sets a maximum size for a collection-type attribute or one whose value is a string or byte[].SimpleListAttributeDefinition.BuildersetMinSize(int minSize)Sets a minimum size description for a collection-type attribute or one whose value is a string or byte[].SimpleListAttributeDefinition.BuildersetWrapXmlList(boolean wrap)-
Methods inherited from class org.jboss.as.controller.ListAttributeDefinition.Builder
getAllowNullElement, getElementValidator, getMaxSize, getMinSize, getValidator, setAllowDuplicates, setAllowNullElement, setElementValidator, setListValidator, setValidator
-
Methods 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 Detail
-
Builder
public Builder(String name, AttributeDefinition valueType)
-
Builder
public Builder(SimpleListAttributeDefinition basis)
-
-
Method Detail
-
of
public static SimpleListAttributeDefinition.Builder of(String name, AttributeDefinition valueType)
-
setWrapXmlList
public SimpleListAttributeDefinition.Builder setWrapXmlList(boolean wrap)
-
build
public SimpleListAttributeDefinition build()
Description copied from class:AbstractAttributeDefinitionBuilderCreate theAttributeDefinition- Specified by:
buildin classAbstractAttributeDefinitionBuilder<SimpleListAttributeDefinition.Builder,SimpleListAttributeDefinition>- Returns:
- the attribute definition. Will not return
null
-
setMaxSize
public SimpleListAttributeDefinition.Builder setMaxSize(int maxSize)
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
public SimpleListAttributeDefinition.Builder setMinSize(int minSize)
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
-
-