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
ConstructorsModifierConstructorDescriptionprotectedAbstractBuilder(ResourceRegistration registration, FeatureRegistry registry, QNameResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionwithCardinality(XMLCardinality cardinality) Override the cardinality of this XML particlewithElementLocalName(String localName) Overrides the local name of the XML element for this resource.withElementLocalName(Function<PathElement, String> localName) Overrides the logic used to determine the local name of the XML element for this resource.withElementName(Function<PathElement, QName> elementName) Overrides the logic used to determine the element local name of this resource.withOperationKey(PathElement operationKey) Overrides the key used to index the generated operation.withOperationTransformation(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, withParsersMethods inherited from class org.jboss.as.controller.xml.XMLContainer.AbstractBuilder
getContent, withContentMethods inherited from class org.jboss.as.controller.xml.XMLParticle.AbstractBuilder
builder, getCardinalityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.persistence.xml.AttributeDefinitionXMLConfiguration.Configurator
withLocalNames, withMarshallers, withNames, withParsersMethods inherited from interface org.jboss.as.controller.FeatureRegistry
enablesMethods inherited from interface org.jboss.as.controller.persistence.xml.ResourceRegistrationXMLElement.Builder
thenDiscardOperation, withDefaultValues, withElementName, withOperationTransformation, withOperationTransformationMethods inherited from interface org.jboss.as.controller.persistence.xml.ResourceXMLContainer.Builder
addAttribute, addAttributes, ignoreAttributeLocalNames, ignoreAttributeNames, 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
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder(ResourceRegistration registration, FeatureRegistry registry, QNameResolver resolver)
-
-
Method Details
-
withCardinality
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
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
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
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
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.
-