Class ValidationEvent


  • public class ValidationEvent
    extends NotificationEvent
    Notification event that says that the validation is performed and whether error exists. This event provides the information: the validated element, the validation ID and the error list.
    • Constructor Detail

      • ValidationEvent

        public ValidationEvent​(org.eclipse.birt.report.model.core.DesignElement obj,
                               java.lang.String validationID,
                               java.util.List errors)
        Constructs the validation event.
        Parameters:
        obj - the element which is validated.
        validationID - the validation ID
        errors - the error list which is the validation result. Each one is the instance of ErrorDetail.
    • Method Detail

      • getEventType

        public int getEventType()
        Description copied from class: NotificationEvent
        Returns the event type. The following event types are defined:
        • CONTENT_EVENT
        • ELEMENT_DELETE_EVENT
        • EXTENDS_EVENT
        • NAME_EVENT
        • NAME_SPACE_EVENT
        • PROPERTY_EVENT
        • STYLE_EVENT
        • USER_PROP_EVENT
        • CUSTOM_MSG_EVENT
        • EXTENSION_PROPERTY_DEFINITION_EVENT
        • NOTIFICATION_EVENT
        • VALIDATION_EVENT
        • LIBRARY_EVENT
        • ATTRIBUTE_EVENT
        • DISPOSE_EVENT
        • CONTENT_REPLACE_EVENT
        • TEMPLATE_TRANSFORM_EVENT
        Specified by:
        getEventType in class NotificationEvent
        Returns:
        the event type.
      • getErrors

        public java.util.List getErrors()
        Returns the error list which is the validation result. Each of the list is the instance of ErrorDetail.
        Returns:
        the error list returned after validation
      • getValidationID

        public java.lang.String getValidationID()
        Returns the ID of the validation this event represents.
        Returns:
        the validation ID