Package org.jboss.as.controller.xml
Interface XMLParticleFactory<RC,WC>
-
- Type Parameters:
RC- the reader contextWC- the writer context
- All Superinterfaces:
FeatureFilter,FeatureRegistry
- All Known Implementing Classes:
XMLParticleFactory.DefaultXMLParticleFactory
public interface XMLParticleFactory<RC,WC> extends FeatureRegistry
A factory for creating builders of XML particles. N.B. All particles created by this factory have a default cardinality ofXMLCardinality.Single.REQUIRED.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classXMLParticleFactory.DefaultXMLParticleFactory<RC,WC>
-
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.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>
XMLParticleFactory<RC,WC>newInstance(FeatureRegistry registry)Creates a new factory instance for creating XML particles.XMLSequence.Builder<RC,WC>sequence()Returns a builder of XML content.-
Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables, getStability
-
-
-
-
Method Detail
-
newInstance
static <RC,WC> XMLParticleFactory<RC,WC> newInstance(FeatureRegistry registry)
Creates a new factory instance for creating XML particles.- Type Parameters:
RC- the reader contextWC- the writer context- Parameters:
registry- a feature registry- Returns:
- a new factory instance for creating XML particles.
-
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.
-
-