public static class StringListAttributeDefinition.Builder extends ListAttributeDefinition.Builder<StringListAttributeDefinition.Builder,StringListAttributeDefinition>
accessConstraints, allowedValues, allowExpression, allowNull, alternatives, attributeGroup, attributeMarshaller, corrector, defaultValue, deprecated, flags, maxSize, measurementUnit, minSize, name, nullSignificant, parser, requires, resourceOnly, type, validateNull, validator, xmlName| Constructor and Description |
|---|
Builder(String name) |
Builder(StringListAttributeDefinition basic) |
| Modifier and Type | Method and Description |
|---|---|
StringListAttributeDefinition |
build()
Create the
AttributeDefinition |
StringListAttributeDefinition.Builder |
setCapabilityReference(CapabilityReferenceRecorder referenceRecorder)
Records that this attribute's values represents a reference to an instance of a
dynamic capability and assigns the
object that should be used to handle adding and removing capability requirements. |
StringListAttributeDefinition.Builder |
setCapabilityReference(String referencedCapability,
String dependentCapability,
boolean dynamicDependent)
Records that this attribute's values represents a reference to an instance of a
dynamic capability. |
getAllowNullElement, getElementValidator, getMaxSize, getMinSize, getValidator, setAllowDuplicates, setAllowNullElement, setElementValidator, setListValidator, setValidatoraddAccessConstraint, addAlternatives, addFlag, getAccessConstraints, getAllowedValues, getAlternatives, getAttributeGroup, getAttributeMarshaller, getCorrector, getDefaultValue, getDeprecated, getFlags, getMeasurementUnit, getName, getNullSignficant, getNullSignificant, getParser, getRequires, getType, getXmlName, isAllowExpression, isAllowNull, isFlagPresent, isResourceOnly, isValidateNull, removeFlag, setAccessConstraints, setAllowedValues, setAllowedValues, setAllowedValues, setAllowExpression, setAllowNull, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCorrector, setDefaultValue, setDeprecated, setDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setName, setNullSignficant, setNullSignificant, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setStorageRuntime, setType, setValidateNull, setXmlNamepublic Builder(String name)
public Builder(StringListAttributeDefinition basic)
public StringListAttributeDefinition build()
AbstractAttributeDefinitionBuilderAttributeDefinitionbuild in class AbstractAttributeDefinitionBuilder<StringListAttributeDefinition.Builder,StringListAttributeDefinition>nullpublic StringListAttributeDefinition.Builder setCapabilityReference(String referencedCapability, String dependentCapability, boolean dynamicDependent)
dynamic capability.
This method is a convenience method equivalent to calling
#setCapabilityReference(SimpleAttributeDefinition.CapabilityReferenceRecorder)
passing in a org.jboss.as.controller.SimpleAttributeDefinition.DefaultCapabilityReferenceRecorder
constructed using the parameters passed to this method.
referencedCapability - the name of the dynamic capability the dynamic portion of whose name is
represented by the attribute's valuesdependentCapability - the name of the capability that depends on referencedCapabilitydynamicDependent - true if dependentCapability is a dynamic capability, the dynamic
portion of which comes from the name of the resource with which
the attribute is associatedSimpleAttributeDefinition.addCapabilityRequirements(OperationContext, ModelNode),
SimpleAttributeDefinition.removeCapabilityRequirements(OperationContext, ModelNode)public StringListAttributeDefinition.Builder setCapabilityReference(CapabilityReferenceRecorder referenceRecorder)
dynamic capability and assigns the
object that should be used to handle adding and removing capability requirements.referenceRecorder - recorder to handle adding and removing capability requirements. May be nullSimpleAttributeDefinition.addCapabilityRequirements(OperationContext, ModelNode),
SimpleAttributeDefinition.removeCapabilityRequirements(OperationContext, ModelNode)Copyright © 2015 JBoss by Red Hat. All rights reserved.