public static final class ObjectTypeAttributeDefinition.Builder extends AbstractAttributeDefinitionBuilder<ObjectTypeAttributeDefinition.Builder,ObjectTypeAttributeDefinition>
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| Constructor and Description |
|---|
Builder(String name,
AttributeDefinition... valueTypes) |
| Modifier and Type | Method and Description |
|---|---|
ObjectTypeAttributeDefinition |
build()
Create the
AttributeDefinition |
static ObjectTypeAttributeDefinition.Builder |
of(String name,
AttributeDefinition... valueTypes) |
static ObjectTypeAttributeDefinition.Builder |
of(String name,
AttributeDefinition[] valueTypes,
AttributeDefinition[] moreValueTypes) |
ObjectTypeAttributeDefinition.Builder |
setAllowNull(boolean allowNull)
Inverse of the preferred
AbstractAttributeDefinitionBuilder.setRequired(boolean); sets whether the attribute should
allow undefined values
in the absence of alternatives. |
ObjectTypeAttributeDefinition.Builder |
setSuffix(String suffix) |
addAccessConstraint, addAlternatives, addArbitraryDescriptor, addFlag, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeGroup, getAttributeMarshaller, getCorrector, getDefaultValue, getDeprecated, getFlags, getMaxSize, getMeasurementUnit, getMinSize, getName, getNullSignficant, getNullSignificant, getParser, getRequires, getType, getUndefinedMetricValue, getValidator, getXmlName, isAllowExpression, isAllowNull, isFlagPresent, isResourceOnly, isValidateNull, removeFlag, setAccessConstraints, setAllowedValues, setAllowedValues, setAllowedValues, setAllowExpression, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCorrector, setDefaultValue, setDeprecated, setDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setName, setNullSignficant, setNullSignificant, setRequired, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setRuntimeServiceNotRequired, setStorageRuntime, setType, setUndefinedMetricValue, setValidateNull, setValidator, setXmlNamepublic Builder(String name, AttributeDefinition... valueTypes)
public static ObjectTypeAttributeDefinition.Builder of(String name, AttributeDefinition... valueTypes)
public static ObjectTypeAttributeDefinition.Builder of(String name, AttributeDefinition[] valueTypes, AttributeDefinition[] moreValueTypes)
public ObjectTypeAttributeDefinition build()
AbstractAttributeDefinitionBuilderAttributeDefinitionbuild in class AbstractAttributeDefinitionBuilder<ObjectTypeAttributeDefinition.Builder,ObjectTypeAttributeDefinition>nullpublic ObjectTypeAttributeDefinition.Builder setSuffix(String suffix)
public ObjectTypeAttributeDefinition.Builder setAllowNull(boolean allowNull)
AbstractAttributeDefinitionBuilderAbstractAttributeDefinitionBuilder.setRequired(boolean); sets whether the attribute should
allow undefined values
in the absence of alternatives.
If not set the default value is the value provided to the builder constructor, or false
if no value is provided.setAllowNull in class AbstractAttributeDefinitionBuilder<ObjectTypeAttributeDefinition.Builder,ObjectTypeAttributeDefinition>allowNull - true if undefined values should be allowed in the absence of alternativesCopyright © 2017 JBoss by Red Hat. All rights reserved.