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
Encapsulates an XML element.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder of an XML element.static classstatic classstatic classNested 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
Modifier and TypeMethodDescriptiongetName()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> 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
getStabilityMethods inherited from interface org.jboss.as.controller.xml.XMLComponent
getWriterMethods inherited from interface org.jboss.as.controller.xml.XMLParticle
getCardinality, getReader
-
Method Details
-
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
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.
-