public static class PropertyAttributeDefinition.Builder extends AbstractAttributeDefinitionBuilder<PropertyAttributeDefinition.Builder,PropertyAttributeDefinition>
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
Modifier and Type | Method and Description |
---|---|
PropertyAttributeDefinition |
build()
Create the
AttributeDefinition |
static PropertyAttributeDefinition.Builder |
of(String name,
org.jboss.dmr.ModelType type)
Creates a builder for
PropertyAttributeDefinition . |
static PropertyAttributeDefinition.Builder |
of(String name,
org.jboss.dmr.ModelType type,
boolean allowNull)
Creates a builder for
PropertyAttributeDefinition . |
PropertyAttributeDefinition.Builder |
setPropertyName(String propertyName) |
PropertyAttributeDefinition.Builder |
setResolver(ModelNodeResolver<String> resolver) |
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, setAllowNull, setAlternatives, setAttributeGroup, setAttributeMarshaller, setAttributeParser, setCapabilityReference, setCapabilityReference, setCapabilityReference, setCorrector, setDefaultValue, setDeprecated, setDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setName, setNullSignficant, setNullSignificant, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setStorageRuntime, setType, setUndefinedMetricValue, setValidateNull, setValidator, setXmlName
public static PropertyAttributeDefinition.Builder of(String name, org.jboss.dmr.ModelType type)
PropertyAttributeDefinition
.name
- the name of the attributetype
- the attribute typepublic static PropertyAttributeDefinition.Builder of(String name, org.jboss.dmr.ModelType type, boolean allowNull)
PropertyAttributeDefinition
.name
- the name of the attributetype
- the attribute typeallowNull
- true
if null
is allowed, otherwise false
public PropertyAttributeDefinition build()
AbstractAttributeDefinitionBuilder
AttributeDefinition
build
in class AbstractAttributeDefinitionBuilder<PropertyAttributeDefinition.Builder,PropertyAttributeDefinition>
null
public PropertyAttributeDefinition.Builder setPropertyName(String propertyName)
public PropertyAttributeDefinition.Builder setResolver(ModelNodeResolver<String> resolver)
Copyright © 2023 JBoss by Red Hat. All rights reserved.