Interface XMLElement<RC,WC>

Type Parameters:
RC - the reader context
WC - 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
  • 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

      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 context
      WC - the writer content
      Parameters:
      name - the qualified name of ignored element
      Returns:
      an element whose content should be ignored.