public static class PropertyAttributeDefinition.Builder extends AbstractAttributeDefinitionBuilder<PropertyAttributeDefinition.Builder,PropertyAttributeDefinition>
accessConstraints, allowExpression, allowNull, alternatives, attributeMarshaller, corrector, defaultValue, deprecated, flags, maxSize, measurementUnit, minSize, name, nullSignficant, parser, 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, addFlag, getAccessConstraints, getAlternatives, getAttributeMarshaller, getCorrector, getDefaultValue, getDeprecated, getFlags, getMaxSize, getMeasurementUnit, getMinSize, getName, getNullSignficant, getParser, getRequires, getType, getValidator, getXmlName, isAllowExpression, isAllowNull, isFlagPresent, isResourceOnly, isValidateNull, removeFlag, setAccessConstraints, setAllowExpression, setAllowNull, setAlternatives, setAttributeMarshaller, setAttributeParser, setCorrector, setDefaultValue, setDeprecated, setFlags, setMaxSize, setMeasurementUnit, setMinSize, setNullSignficant, setRequires, setResourceOnly, setRestartAllServices, setRestartJVM, setStorageRuntime, setType, 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 © 2015 JBoss by Red Hat. All rights reserved.