Package org.jboss.as.controller.xml
Interface XMLComponentFactory<RC,WC>
- Type Parameters:
RC- the reader contextWC- the writer context
- All Superinterfaces:
FeatureFilter,FeatureRegistry,QNameResolver
- All Known Implementing Classes:
XMLComponentFactory.DefaultXMLComponentFactory
A factory for creating builders of XML components.
N.B. All particles created by this factory have a default cardinality of
XMLCardinality.Single.REQUIRED.
N.B. All attributes created by this factory have a default usage of XMLAttribute.Use.OPTIONAL.- 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 XML content.default XMLAttribute.Builder<RC,WC> Returns a builder of an XML attribute, using the specified name.Returns a builder of an XML attribute, using the specified name and stability.choice()Returns a builder of an XML choice.default XMLElement.Builder<RC,WC> Returns a builder of an XML element, using the specified name.Returns a builder of an XML element, using the specified name.static <RC,WC> XMLComponentFactory<RC, WC> newInstance(FeatureRegistry registry, QNameResolver resolver) Creates a new particle factory for the specified feature registry and qualified name resolver.static <S extends IntVersionSchema<S>,RC, WC>
XMLComponentFactory<RC,WC> newInstance(S schema) Creates a new particle factory for the specified schema.sequence()Returns a builder of XML content.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 schema.- Type Parameters:
S- the subsystem schema type- Parameters:
schema- a subsystem schema- Returns:
- a particle factory
-
newInstance
static <RC,WC> XMLComponentFactory<RC,WC> newInstance(FeatureRegistry registry, QNameResolver resolver) 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
-
attribute
Returns a builder of an XML attribute, using the specified name.- Parameters:
name- the qualified attribute name- Returns:
- a builder of an XML attribute.
-
attribute
Returns a builder of an XML attribute, using the specified name and stability.- Parameters:
name- the qualified attribute namestability- the stability of this attribute- Returns:
- a builder of an XML element.
-
element
Returns a builder of an XML element, using the specified name.- Parameters:
name- the element name- Returns:
- a builder of an XML element.
-
element
Returns a builder of an XML element, using the specified name.- Parameters:
name- the element namestability- the stability of this element- Returns:
- a builder of an XML element.
-
choice
XMLChoice.Builder<RC,WC> choice()Returns a builder of an XML choice.- Returns:
- a builder of an XML choice.
-
all
XMLAll.Builder<RC,WC> all()Returns a builder of XML content.- Returns:
- a builder of XML content.
-
sequence
XMLSequence.Builder<RC,WC> sequence()Returns a builder of XML content.- Returns:
- a builder of XML content.
-