Interface ResourceXMLParticleFactory
- All Superinterfaces:
FeatureFilter,FeatureRegistry,QNameResolver
- All Known Implementing Classes:
ResourceXMLParticleFactory.DefaultSubsystemXMLParticleFactory
A factory for building XML particles for a subsystem resource.
All particles created by this factory will have a default cardinality of
XMLCardinality.Single.REQUIRED.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Field Summary
Fields inherited from interface org.jboss.as.controller.xml.QNameResolver
COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionall()Returns a builder of an xs:all group.choice()Returns a builder of an xs:choice group.default ResourceXMLElement.BuilderReturns a builder of an XML element using the specified name.Returns a builder of an XML element using the specified name.namedElement(ResourceRegistration registration) Returns a builder of an XML element for the named resource with the specified registration.namedElementChoice(NamedResourceRegistrationXMLElement wildcardElement) Returns a builder of an XML choice of one or moreNamedResourceRegistrationXMLElement, including the specified wildcardNamedResourceRegistrationXMLElement.static ResourceXMLParticleFactorynewInstance(FeatureRegistry registry, QNameResolver resolver) Creates a new particle factory for the specified feature registry and qualified name resolver.static <S extends SubsystemSchema<S>>
ResourceXMLParticleFactorynewInstance(S schema) Creates a new particle factory for the specified subsystem schema.sequence()Returns a builder of an xs:sequence group.singletonElement(ResourceRegistration registration) Returns a builder of an XML element for the singleton resource with the specified registration.Returns a builder of an XML choice of one or moreSingletonResourceRegistrationXMLElement.subsystemElement(ResourceRegistration registration) Returns a builder of an XML element for the subsystem resource with the specified registration.Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables, getStabilityMethods inherited from interface org.jboss.as.controller.xml.QNameResolver
resolve
-
Method Details
-
newInstance
Creates a new particle factory for the specified subsystem schema.- Type Parameters:
S- the subsystem schema type- Parameters:
schema- a subsystem schema- Returns:
- a particle factory
-
newInstance
Creates a new particle factory for the specified feature registry and qualified name resolver.- Parameters:
registry- a feature registryresolver- a qualified name resolver- Returns:
- a particle factory
-
subsystemElement
Returns a builder of an XML element for the subsystem resource with the specified registration. Default element local name isResourceXMLElementLocalName.KEY.- Parameters:
registration- a subsystem resource registration- Returns:
- a builder of an XML element for the subsystem resource with the specified registration.
-
namedElement
Returns a builder of an XML element for the named resource with the specified registration. Default element local name isResourceXMLElementLocalName.KEY.- Parameters:
registration- a subsystem resource registration- Returns:
- a builder of an XML element for the resource with the specified registration.
-
namedElementChoice
NamedResourceRegistrationXMLChoice.Builder namedElementChoice(NamedResourceRegistrationXMLElement wildcardElement) Returns a builder of an XML choice of one or moreNamedResourceRegistrationXMLElement, including the specified wildcardNamedResourceRegistrationXMLElement. Elements added to this choice must be override registrations of the specified wildcardNamedResourceRegistrationXMLElement.- Parameters:
element- the XML element for a wildcard resource registration.- Returns:
- a builder of an XML choice of one or more
NamedResourceRegistrationXMLElement. - Throws:
IllegalArgumentException- if the specifiedNamedResourceRegistrationXMLElementis not associated with a wildcard resource.
-
singletonElement
Returns a builder of an XML element for the singleton resource with the specified registration. Default element local name isResourceXMLElementLocalName.VALUE.- Parameters:
registration- a subsystem resource registration- Returns:
- a builder of an XML element for the resource with the specified registration.
-
singletonElementChoice
SingletonResourceRegistrationXMLChoice.Builder singletonElementChoice()Returns a builder of an XML choice of one or moreSingletonResourceRegistrationXMLElement. ASingletonResourceRegistrationXMLChoicemay designate aResourceRegistrationto be assumed when no choice is present.- Returns:
- a builder of an XML choice of one or more
SingletonResourceRegistrationXMLElement
-
element
Returns a builder of an XML element using the specified name.- Parameters:
name- a qualified element name- Returns:
- a builder of an XML element
-
element
Returns a builder of an XML element using the specified name. Default cardinality isXMLCardinality.Single.REQUIRED.- Parameters:
name- a qualified element namestability- the stability of this element- Returns:
- a builder of an XML element
-
all
ResourceXMLAll.Builder all()Returns a builder of an xs:all group. Default cardinality isXMLCardinality.Single.REQUIRED.- Returns:
- a builder of an xs:all group
-
sequence
ResourceXMLSequence.Builder sequence()Returns a builder of an xs:sequence group. Default cardinality isXMLCardinality.Single.REQUIRED.- Returns:
- a builder of an xs:sequence group
-
choice
ResourceXMLChoice.Builder choice()Returns a builder of an xs:choice group. Default cardinality isXMLCardinality.Single.REQUIRED.- Returns:
- a builder of an xs:choice group
-