Package org.jboss.as.controller.xml
Interface XMLElement<RC,WC>
-
- Type Parameters:
RC- the reader contextWC- the writer content
- All Superinterfaces:
Feature,XMLComponent<RC,WC>,XMLContainer<RC,WC>,XMLParticle<RC,WC>
- All Known Subinterfaces:
AttributeDefinitionXMLElement,NamedResourceRegistrationXMLElement,ResourceRegistrationXMLElement,ResourceXMLElement,SingletonResourceRegistrationXMLElement,SubsystemResourceRegistrationXMLElement
- All Known Implementing Classes:
AttributeDefinitionXMLElement.DefaultAttributeDefinitionXMLElement,NamedResourceRegistrationXMLElement.DefaultNamedResourceRegistrationXMLElement,ResourceRegistrationXMLElement.DefaultResourceRegistrationXMLElement,ResourceXMLElement.DefaultResourceXMLElement,SingletonResourceRegistrationXMLElement.DefaultSingletonResourceRegistrationXMLElement,SubsystemResourceRegistrationXMLElement.DefaultSubsystemResourceRegistrationXMLElement,XMLElement.DefaultXMLElement
public interface XMLElement<RC,WC> extends XMLContainer<RC,WC>
Encapsulates an XML element.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXMLElement.Builder<RC,WC>Builder of an XML element.static classXMLElement.DefaultBuilder<RC,WC>static classXMLElement.DefaultXMLElement<RC,WC>static classXMLElement.DefaultXMLElementWriter<RC,WC,CC>-
Nested classes/interfaces inherited from interface org.jboss.as.controller.xml.XMLContainer
XMLContainer.AbstractBuilder<RC,WC,T extends XMLContainer<RC,WC>,B extends XMLContainer.Builder<RC,WC,T,B>>
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.xml.XMLParticle
XMLParticle.DefaultXMLParticle<RC,WC>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description QNamegetName()The qualified name of this element.static <RC,WC>
XMLElement<RC,WC>ignore(QName name, XMLCardinality cardinality)Creates an element whose content should be ignored, if present.default <R,W>
XMLElement<R,W>map(Function<R,RC> readContextMapper, Function<W,WC> writeContentMapper)default <R,W>
XMLElement<R,W>withContext(Supplier<RC> readContextFactory, BiConsumer<R,RC> readContextConsumer, Function<W,WC> writeContentMapper)-
Methods inherited from interface org.jboss.as.controller.Feature
getStability
-
Methods inherited from interface org.jboss.as.controller.xml.XMLComponent
getWriter
-
Methods inherited from interface org.jboss.as.controller.xml.XMLParticle
getCardinality, getReader
-
-
-
-
Method Detail
-
getName
QName getName()
The qualified name of this element.- Returns:
- a qualified name
-
map
default <R,W> XMLElement<R,W> map(Function<R,RC> readContextMapper, Function<W,WC> writeContentMapper)
-
withContext
default <R,W> XMLElement<R,W> withContext(Supplier<RC> readContextFactory, BiConsumer<R,RC> readContextConsumer, Function<W,WC> writeContentMapper)
-
ignore
static <RC,WC> XMLElement<RC,WC> ignore(QName name, XMLCardinality cardinality)
Creates an element whose content should be ignored, if present.- Type Parameters:
RC- the reader contextWC- the writer content- Parameters:
name- the qualified name of ignored element- Returns:
- an element whose content should be ignored.
-
-