Interface XMLComponentFactory<RC,WC>

Type Parameters:
RC - the reader context
WC - 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 of XMLCardinality.Single.REQUIRED. N.B. All attributes created by this factory have a default usage of XMLAttribute.Use.OPTIONAL.
Author:
Paul Ferraro
  • Method Details

    • 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 registry
      resolver - 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 name
      stability - 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 name
      stability - the stability of this element
      Returns:
      a builder of an XML element.
    • choice

      Returns a builder of an XML choice.
      Returns:
      a builder of an XML choice.
    • all

      Returns a builder of XML content.
      Returns:
      a builder of XML content.
    • sequence

      Returns a builder of XML content.
      Returns:
      a builder of XML content.