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
Constructors Modifier Constructor Description protectedAbstractBuilder(FeatureRegistry registry, QNameResolver resolver, AttributeDefinitionXMLConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaddAttribute(AttributeDefinition attribute)Adds the specified attribute to this element, if it will parse and/or marshal as an xs:attribute.BaddAttributes(Iterable<? extends AttributeDefinition> attributes)Bulk operation that adds the specified attributes, that will parse and/or marshal as an xs:attribute, to this element.StabilitygetStability()Returns the feature stability supported by this feature registry.BignoreAttributeLocalNames(Set<String> localNames)Specifies a set of attribute local names that should be allowed, but ignored during parsing.BignoreAttributeNames(Set<QName> names)Specifies a set of attribute local names that should be allowed, but ignored during parsing.QNameresolve(String localName)Resolves the specified local name to a qualified name.BwithLocalNames(Map<AttributeDefinition,String> localNames)Overrides the qualified names for the specified attributes.BwithMarshallers(Map<AttributeDefinition,AttributeMarshaller> marshallers)Overrides the marshallers for the specified attributes.BwithNames(Map<AttributeDefinition,QName> names)Overrides the qualified names for the specified attributes.BwithParsers(Map<AttributeDefinition,AttributeParser> parsers)Overrides the parsers for the specified attributes.-
Methods inherited from class org.jboss.as.controller.xml.XMLContainer.AbstractBuilder
getContent, withContent
-
Methods inherited from class org.jboss.as.controller.xml.XMLParticle.AbstractBuilder
builder, getCardinality, withCardinality
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables
-
Methods inherited from interface org.jboss.as.controller.persistence.xml.ResourceXMLContainer.Builder
provideAttributes
-
Methods inherited from interface org.jboss.as.controller.xml.XMLContainer.Builder
withContent, withContent, withContent, withContent
-
Methods inherited from interface org.jboss.as.controller.xml.XMLParticle.Builder
build, withCardinality
-
-
-
-
Constructor Detail
-
AbstractBuilder
protected AbstractBuilder(FeatureRegistry registry, QNameResolver resolver, AttributeDefinitionXMLConfiguration configuration)
-
-
Method Detail
-
resolve
public QName resolve(String localName)
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
public Stability getStability()
Description copied from interface:FeatureRegistryReturns the feature stability supported by this feature registry.- Specified by:
getStabilityin interfaceFeatureRegistry- Returns:
- a stability level
-
addAttributes
public B addAttributes(Iterable<? extends AttributeDefinition> attributes)
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
public B addAttribute(AttributeDefinition attribute)
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
public B ignoreAttributeLocalNames(Set<String> localNames)
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
public B ignoreAttributeNames(Set<QName> names)
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
public B withLocalNames(Map<AttributeDefinition,String> localNames)
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
public B withNames(Map<AttributeDefinition,QName> names)
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
public B withParsers(Map<AttributeDefinition,AttributeParser> parsers)
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
public B withMarshallers(Map<AttributeDefinition,AttributeMarshaller> marshallers)
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
-
-