public static final class ObjectTypeAttributeDefinition.Builder extends AbstractAttributeDefinitionBuilder<ObjectTypeAttributeDefinition.Builder,ObjectTypeAttributeDefinition>
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,
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)
Sets whether the attribute should
allow undefined values. |
ObjectTypeAttributeDefinition.Builder |
setSuffix(String suffix) |
addAccessConstraint, addAlternatives, addFlag, getAccessConstraints, getAllowedValues, getAlternatives, getAttributeGroup, getAttributeMarshaller, getCorrector, getDefaultValue, getDeprecated, getFlags, getMaxSize, getMeasurementUnit, getMinSize, getName, getNullSignficant, getNullSignificant, getParser, getRequires, getType, getValidator, getXmlName, isAllowExpression, isAllowNull, isFlagPresent, isResourceOnly, isValidateNull, removeFlag, setAccessConstraints, setAllowedValues, setAllowedValues, setAllowedValues, setAllowExpression, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCorrector, setDefaultValue, setDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setName, setNullSignficant, setNullSignificant, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setStorageRuntime, setType, 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)
AbstractAttributeDefinitionBuilderallow undefined values.
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 allowedCopyright © 2015 JBoss by Red Hat. All rights reserved.