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
public interface XMLComponentFactory<RC,WC> extends FeatureRegistry, QNameResolver
A factory for creating builders of XML components. N.B. All particles created by this factory have a default cardinality ofXMLCardinality.Single.REQUIRED. N.B. All attributes created by this factory have a default usage ofXMLAttribute.Use.OPTIONAL.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classXMLComponentFactory.DefaultXMLComponentFactory<RC,WC>
-
Field Summary
-
Fields inherited from interface org.jboss.as.controller.xml.QNameResolver
COMPARATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description XMLAll.Builder<RC,WC>all()Returns a builder of XML content.default XMLAttribute.Builder<RC,WC>attribute(QName name)Returns a builder of an XML attribute, using the specified name.XMLAttribute.Builder<RC,WC>attribute(QName name, Stability stability)Returns a builder of an XML attribute, using the specified name and stability.XMLChoice.Builder<RC,WC>choice()Returns a builder of an XML choice.default XMLElement.Builder<RC,WC>element(QName name)Returns a builder of an XML element, using the specified name.XMLElement.Builder<RC,WC>element(QName name, Stability stability)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.XMLSequence.Builder<RC,WC>sequence()Returns a builder of XML content.-
Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables, getStability
-
Methods inherited from interface org.jboss.as.controller.xml.QNameResolver
resolve
-
-
-
-
Method Detail
-
newInstance
static <S extends IntVersionSchema<S>,RC,WC> XMLComponentFactory<RC,WC> newInstance(S schema)
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
default XMLAttribute.Builder<RC,WC> attribute(QName name)
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
XMLAttribute.Builder<RC,WC> attribute(QName name, Stability stability)
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
default XMLElement.Builder<RC,WC> element(QName name)
Returns a builder of an XML element, using the specified name.- Parameters:
name- the element name- Returns:
- a builder of an XML element.
-
element
XMLElement.Builder<RC,WC> element(QName name, Stability stability)
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.
-
-