## Uses of Interface
javax.xml.bind.ValidationEvent

- Packages that use ValidationEvent
  Package | Description
  --- | ---
  javax.xml.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
  javax.xml.bind.helpers | JAXB Provider Use Only: Provides partial default implementations for some of the `javax.xml.bind` interfaces.
  javax.xml.bind.util | Useful client utility classes.

- - ### Uses of ValidationEvent in javax.xml.bind

    Subinterfaces of ValidationEvent in javax.xml.bind
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `NotIdentifiableEvent` This event indicates that a problem was encountered resolving an ID/IDREF.
    `interface` | `ParseConversionEvent` This event indicates that a problem was encountered while converting a string from the XML data into a value of the target Java data type.
    `interface` | `PrintConversionEvent` This event indicates that a problem was encountered while converting data from the Java content tree into its lexical representation.

    Methods in javax.xml.bind with parameters of type ValidationEvent
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | ValidationEventHandler.`handleEvent(ValidationEvent event)` Receive notification of a validation warning or error.

  - ### Uses of ValidationEvent in javax.xml.bind.helpers

    Classes in javax.xml.bind.helpers that implement ValidationEvent
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `NotIdentifiableEventImpl` Default implementation of the NotIdentifiableEvent interface.
    `class` | `ParseConversionEventImpl` Default implementation of the ParseConversionEvent interface.
    `class` | `PrintConversionEventImpl` Default implementation of the PrintConversionEvent interface.
    `class` | `ValidationEventImpl` Default implementation of the ValidationEvent interface.

    Methods in javax.xml.bind.helpers with parameters of type ValidationEvent
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | DefaultValidationEventHandler.`handleEvent(ValidationEvent event)`

  - ### Uses of ValidationEvent in javax.xml.bind.util

    Methods in javax.xml.bind.util that return ValidationEvent
    Modifier and Type | Method | Description
    --- | --- | ---
    `ValidationEvent[]` | ValidationEventCollector.`getEvents()` Return an array of ValidationEvent objects containing a copy of each of the collected errors and warnings.

    Methods in javax.xml.bind.util with parameters of type ValidationEvent
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | ValidationEventCollector.`handleEvent(ValidationEvent event)`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.