Interface SingletonResourceRegistrationXMLChoice.Builder
- All Superinterfaces:
XMLElementGroup.Builder<Map.Entry<PathAddress,,Map<PathAddress, org.jboss.dmr.ModelNode>>, org.jboss.dmr.ModelNode, SingletonResourceRegistrationXMLElement, SingletonResourceRegistrationXMLChoice, SingletonResourceRegistrationXMLChoice.Builder> XMLParticle.Builder<Map.Entry<PathAddress,Map<PathAddress, org.jboss.dmr.ModelNode>>, org.jboss.dmr.ModelNode, SingletonResourceRegistrationXMLChoice, SingletonResourceRegistrationXMLChoice.Builder>
- All Known Implementing Classes:
SingletonResourceRegistrationXMLChoice.DefaultBuilder
- Enclosing interface:
- SingletonResourceRegistrationXMLChoice
public static interface SingletonResourceRegistrationXMLChoice.Builder
extends XMLElementGroup.Builder<Map.Entry<PathAddress,Map<PathAddress,org.jboss.dmr.ModelNode>>,org.jboss.dmr.ModelNode,SingletonResourceRegistrationXMLElement,SingletonResourceRegistrationXMLChoice,SingletonResourceRegistrationXMLChoice.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionimplyIfEmpty(ResourceRegistration implied) Indicates that this choice is optional, i.e.implyIfEmpty(ResourceRegistration implied, PathElement impliedOperationKey) Indicates that this choice is optional, i.e.Methods inherited from interface org.jboss.as.controller.xml.XMLElementGroup.Builder
addElementMethods inherited from interface org.jboss.as.controller.xml.XMLParticle.Builder
build, withCardinality
-
Method Details
-
implyIfEmpty
Indicates that this choice is optional, i.e.XMLCardinality.isRequired()== false, and an emptyModelDescriptionConstants.ADDoperation for the specifiedResourceRegistrationshould be created when no choice is present.- Parameters:
implied- anResourceRegistrationto be implied when no choice is present.- Returns:
- a reference to this builder.
- Throws:
IllegalArgumentException- if the specifiedResourceRegistrationspecifies a wildcardPathElement.
-
implyIfEmpty
SingletonResourceRegistrationXMLChoice.Builder implyIfEmpty(ResourceRegistration implied, PathElement impliedOperationKey) Indicates that this choice is optional, i.e.XMLCardinality.Single.OPTIONAL, and that an emptyModelDescriptionConstants.ADDoperation for the specifiedResourceRegistrationshould be created when no choice is present.- Parameters:
implied- an impliedResourceRegistrationto be assumed when no choice is present.the- operation key of the implied operation- Returns:
- a reference to this builder.
- Throws:
IllegalArgumentException- if the specifiedResourceRegistrationspecifies a wildcardPathElement.
-