Class ResourceRegistrationXMLElement.AbstractBuilder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.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>
-
- org.jboss.as.controller.persistence.xml.ResourceRegistrationXMLElement.AbstractBuilder<T,B>
-
- All Implemented Interfaces:
FeatureFilter,FeatureRegistry,AttributeDefinitionXMLConfiguration.Configurator<B>,ResourceRegistrationXMLElement.Builder<T,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:
NamedResourceRegistrationXMLElement.DefaultBuilder,SingletonResourceRegistrationXMLElement.DefaultBuilder,SubsystemResourceRegistrationXMLElement.DefaultBuilder
- Enclosing interface:
- ResourceRegistrationXMLElement
public abstract static class ResourceRegistrationXMLElement.AbstractBuilder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>> extends ResourceXMLContainer.AbstractBuilder<T,B> implements ResourceRegistrationXMLElement.Builder<T,B>
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.controller.xml.QNameResolver
COMPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBuilder(ResourceRegistration registration, FeatureRegistry registry, QNameResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BwithCardinality(XMLCardinality cardinality)Override the cardinality of this XML particleBwithElementLocalName(String localName)Overrides the local name of the XML element for this resource.BwithElementLocalName(Function<PathElement,String> localName)Overrides the logic used to determine the local name of the XML element for this resource.BwithElementName(Function<PathElement,QName> elementName)Overrides the logic used to determine the element local name of this resource.BwithOperationKey(PathElement operationKey)Overrides the key used to index the generated operation.BwithOperationTransformation(BiConsumer<Map<PathAddress,org.jboss.dmr.ModelNode>,PathAddress> transformation)Specifies an operation transformation function, applied after this resource and any children are parsed into an "add" operation.-
Methods inherited from class org.jboss.as.controller.persistence.xml.ResourceXMLContainer.AbstractBuilder
addAttribute, addAttributes, getStability, ignoreAttributeLocalNames, ignoreAttributeNames, resolve, withLocalNames, withMarshallers, withNames, withParsers
-
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
-
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.persistence.xml.AttributeDefinitionXMLConfiguration.Configurator
withLocalNames, withMarshallers, withNames, withParsers
-
Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables
-
Methods inherited from interface org.jboss.as.controller.persistence.xml.ResourceRegistrationXMLElement.Builder
thenDiscardOperation, withDefaultValues, withElementName, withOperationTransformation, withOperationTransformation
-
Methods inherited from interface org.jboss.as.controller.persistence.xml.ResourceXMLContainer.Builder
addAttribute, addAttributes, ignoreAttributeLocalNames, ignoreAttributeNames, 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
-
-
-
-
Constructor Detail
-
AbstractBuilder
protected AbstractBuilder(ResourceRegistration registration, FeatureRegistry registry, QNameResolver resolver)
-
-
Method Detail
-
withCardinality
public B withCardinality(XMLCardinality cardinality)
Description copied from interface:XMLParticle.BuilderOverride the cardinality of this XML particle- Specified by:
withCardinalityin interfaceXMLParticle.Builder<Map.Entry<PathAddress,Map<PathAddress,org.jboss.dmr.ModelNode>>,org.jboss.dmr.ModelNode,T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Overrides:
withCardinalityin classXMLParticle.AbstractBuilder<Map.Entry<PathAddress,Map<PathAddress,org.jboss.dmr.ModelNode>>,org.jboss.dmr.ModelNode,T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
cardinality- the cardinality of this XML particle- Returns:
- a reference to this builder
-
withOperationKey
public B withOperationKey(PathElement operationKey)
Description copied from interface:ResourceRegistrationXMLElement.BuilderOverrides the key used to index the generated operation.- Specified by:
withOperationKeyin interfaceResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
operationKey- an operation key- Returns:
- a reference to this builder.
-
withElementLocalName
public B withElementLocalName(String localName)
Description copied from interface:ResourceRegistrationXMLElement.BuilderOverrides the local name of the XML element for this resource.- Specified by:
withElementLocalNamein interfaceResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
localName- the local element name override.- Returns:
- a reference to this builder.
-
withElementLocalName
public B withElementLocalName(Function<PathElement,String> localName)
Description copied from interface:ResourceRegistrationXMLElement.BuilderOverrides the logic used to determine the local name of the XML element for this resource.- Specified by:
withElementLocalNamein interfaceResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
localName- a function returning the element local name for a given path.- Returns:
- a reference to this builder.
-
withElementName
public B withElementName(Function<PathElement,QName> elementName)
Description copied from interface:ResourceRegistrationXMLElement.BuilderOverrides the logic used to determine the element local name of this resource.- Specified by:
withElementNamein interfaceResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
elementName- a function returning the qualified element name for a given path.- Returns:
- a reference to this builder.
-
withOperationTransformation
public B withOperationTransformation(BiConsumer<Map<PathAddress,org.jboss.dmr.ModelNode>,PathAddress> transformation)
Description copied from interface:ResourceRegistrationXMLElement.BuilderSpecifies an operation transformation function, applied after this resource and any children are parsed into an "add" operation. Defaults toFunctions.discardingBiConsumer()if unspecified.- Specified by:
withOperationTransformationin interfaceResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,B extends ResourceRegistrationXMLElement.Builder<T,B>>- Parameters:
transformation- a consumer accepting all operations and the key of the current operation- Returns:
- a reference to this builder.
-
-