be.ehealth.technicalconnector.validator.impl.handler

## Class XOPValidationHandler

- java.lang.Object
- - org.xml.sax.helpers.DefaultHandler
  - - be.ehealth.technicalconnector.validator.impl.handler.XOPValidationHandler

- All Implemented Interfaces:
    ContentHandler, DTDHandler, EntityResolver, ErrorHandler

      public class XOPValidationHandler
      extends DefaultHandler

  SAX handler that detects XOP (XML-binary Optimized Packaging) include elements.

  When an `<xop:Include>` element with an `href` attribute is encountered, `isXop()` returns `true` until two closing elements have been seen, which corresponds to the end of the enclosing typed-data wrapper element.

  If this handler is disabled at construction time, all events are ignored.

  See Also:
    XOP 1.0 Specification

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XOPValidationHandler(boolean enabled)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `characters(char[] ch, int start, int length)`
    `void` | `endElement(String uri, String localName, String qName)`
    `boolean` | `isXop()`
    `void` | `startElement(String uri, String localName, String qName, Attributes attributes)`

    - ### Methods inherited from class org.xml.sax.helpers.DefaultHandler

      `endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XOPValidationHandler

          public XOPValidationHandler(boolean enabled)

  - ### Method Detail

    - #### startElement

          public void startElement(String uri,
                                   String localName,
                                   String qName,
                                   Attributes attributes)
                            throws SAXException

      Specified by:
        `startElement` in interface `ContentHandler`
      Overrides:
        `startElement` in class `DefaultHandler`
      Throws:
        `SAXException`

    - #### characters

          public void characters(char[] ch,
                                 int start,
                                 int length)
                          throws SAXException

      Specified by:
        `characters` in interface `ContentHandler`
      Overrides:
        `characters` in class `DefaultHandler`
      Throws:
        `SAXException`

    - #### endElement

          public void endElement(String uri,
                                 String localName,
                                 String qName)
                          throws SAXException

      Specified by:
        `endElement` in interface `ContentHandler`
      Overrides:
        `endElement` in class `DefaultHandler`
      Throws:
        `SAXException`

    - #### isXop

          public boolean isXop()

Connector Packaging generic 4.9.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.