Class ResourceXMLContainer.AbstractBuilder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T,B>>
java.lang.Object
org.jboss.as.controller.xml.XMLParticle.AbstractBuilder<RC,WC,T,B>
org.jboss.as.controller.xml.XMLContainer.AbstractBuilder<Map.Entry<PathAddress,Map<PathAddress,org.jboss.dmr.ModelNode>>,org.jboss.dmr.ModelNode,T,B>
org.jboss.as.controller.persistence.xml.ResourceXMLContainer.AbstractBuilder<T,B>
- All Implemented Interfaces:
FeatureFilter,FeatureRegistry,AttributeDefinitionXMLConfiguration.Configurator<B>,ResourceXMLContainer.Builder<T,,B> QNameResolver,XMLContainer.Builder<Map.Entry<PathAddress,,Map<PathAddress, org.jboss.dmr.ModelNode>>, org.jboss.dmr.ModelNode, T, B> XMLParticle.Builder<Map.Entry<PathAddress,Map<PathAddress, org.jboss.dmr.ModelNode>>, org.jboss.dmr.ModelNode, T, B>
- Direct Known Subclasses:
ResourceRegistrationXMLElement.AbstractBuilder,ResourceXMLElement.DefaultBuilder
- Enclosing interface:
- ResourceXMLContainer
public abstract static class ResourceXMLContainer.AbstractBuilder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T,B>>
extends XMLContainer.AbstractBuilder<Map.Entry<PathAddress,Map<PathAddress,org.jboss.dmr.ModelNode>>,org.jboss.dmr.ModelNode,T,B>
implements ResourceXMLContainer.Builder<T,B>, FeatureRegistry, QNameResolver
-
Field Summary
Fields inherited from interface org.jboss.as.controller.xml.QNameResolver
COMPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBuilder(FeatureRegistry registry, QNameResolver resolver, AttributeDefinitionXMLConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(AttributeDefinition attribute) Adds the specified attribute to this element, if it will parse and/or marshal as an xs:attribute.addAttributes(Iterable<? extends AttributeDefinition> attributes) Bulk operation that adds the specified attributes, that will parse and/or marshal as an xs:attribute, to this element.Returns the feature stability supported by this feature registry.ignoreAttributeLocalNames(Set<String> localNames) Specifies a set of attribute local names that should be allowed, but ignored during parsing.ignoreAttributeNames(Set<QName> names) Specifies a set of attribute local names that should be allowed, but ignored during parsing.Resolves the specified local name to a qualified name.withLocalNames(Map<AttributeDefinition, String> localNames) Overrides the qualified names for the specified attributes.withMarshallers(Map<AttributeDefinition, AttributeMarshaller> marshallers) Overrides the marshallers for the specified attributes.withNames(Map<AttributeDefinition, QName> names) Overrides the qualified names for the specified attributes.withParsers(Map<AttributeDefinition, AttributeParser> parsers) Overrides the parsers for the specified attributes.Methods inherited from class org.jboss.as.controller.xml.XMLContainer.AbstractBuilder
getContent, withContentMethods inherited from class org.jboss.as.controller.xml.XMLParticle.AbstractBuilder
builder, getCardinality, withCardinalityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.FeatureRegistry
enablesMethods inherited from interface org.jboss.as.controller.persistence.xml.ResourceXMLContainer.Builder
provideAttributesMethods inherited from interface org.jboss.as.controller.xml.XMLContainer.Builder
withContent, withContent, withContent, withContentMethods inherited from interface org.jboss.as.controller.xml.XMLParticle.Builder
build, withCardinality
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder(FeatureRegistry registry, QNameResolver resolver, AttributeDefinitionXMLConfiguration configuration)
-
-
Method Details
-
resolve
Description copied from interface:QNameResolverResolves the specified local name to a qualified name.- Specified by:
resolvein interfaceQNameResolver- Parameters:
localName- an attribute/element local name- Returns:
- a qualified name
-
getStability
Description copied from interface:FeatureRegistryReturns the feature stability supported by this feature registry.- Specified by:
getStabilityin interfaceFeatureRegistry- Returns:
- a stability level
-
addAttributes
Description copied from interface:ResourceXMLContainer.BuilderBulk operation that adds the specified attributes, that will parse and/or marshal as an xs:attribute, to this element.- Specified by:
addAttributesin interfaceResourceXMLContainer.Builder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T, B>> - Parameters:
attributes- zero or more resource attribute definitions- Returns:
- a reference to this builder
-
addAttribute
Description copied from interface:ResourceXMLContainer.BuilderAdds the specified attribute to this element, if it will parse and/or marshal as an xs:attribute.- Specified by:
addAttributein interfaceResourceXMLContainer.Builder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T, B>> - Parameters:
attribute- a resource attribute definition- Returns:
- a reference to this builder
-
ignoreAttributeLocalNames
Description copied from interface:ResourceXMLContainer.BuilderSpecifies a set of attribute local names that should be allowed, but ignored during parsing.- Specified by:
ignoreAttributeLocalNamesin interfaceResourceXMLContainer.Builder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T, B>> - Parameters:
localNames- a set of ignored attribute local names- Returns:
- a reference to this builder
-
ignoreAttributeNames
Description copied from interface:ResourceXMLContainer.BuilderSpecifies a set of attribute local names that should be allowed, but ignored during parsing.- Specified by:
ignoreAttributeNamesin interfaceResourceXMLContainer.Builder<T extends ResourceXMLContainer,B extends ResourceXMLContainer.Builder<T, B>> - Returns:
- a reference to this builder
-
withLocalNames
Description copied from interface:AttributeDefinitionXMLConfiguration.ConfiguratorOverrides the qualified names for the specified attributes.- Specified by:
withLocalNamesin interfaceAttributeDefinitionXMLConfiguration.Configurator<T extends ResourceXMLContainer>- Returns:
- a reference to this configurator
-
withNames
Description copied from interface:AttributeDefinitionXMLConfiguration.ConfiguratorOverrides the qualified names for the specified attributes.- Specified by:
withNamesin interfaceAttributeDefinitionXMLConfiguration.Configurator<T extends ResourceXMLContainer>- Parameters:
names- a mapping of qualified name overrides- Returns:
- a reference to this configurator
-
withParsers
Description copied from interface:AttributeDefinitionXMLConfiguration.ConfiguratorOverrides the parsers for the specified attributes.- Specified by:
withParsersin interfaceAttributeDefinitionXMLConfiguration.Configurator<T extends ResourceXMLContainer>- Parameters:
parsers- a mapping of parser overrides- Returns:
- a reference to this configurator
-
withMarshallers
Description copied from interface:AttributeDefinitionXMLConfiguration.ConfiguratorOverrides the marshallers for the specified attributes.- Specified by:
withMarshallersin interfaceAttributeDefinitionXMLConfiguration.Configurator<T extends ResourceXMLContainer>- Parameters:
marshallers- a mapping of marshaller overrides- Returns:
- a reference to this configurator
-