org.apache.ws.jaxme
Interface ValidationEvents


public interface ValidationEvents

List of error codes, being used in validation events.

Version:
$Id$
Author:
Jochen Wiedmann

Field Summary
static java.lang.String EVENT_ADDITIONAL_CHILD_ELEMENT
          A complex elements child is unknown.
static java.lang.String EVENT_ALL_GROUP_REUSE
          A childs of an all group was used more than once.
static java.lang.String EVENT_CHOICE_GROUP_REUSE
          More than one alternative in a choice group have been used.
static java.lang.String EVENT_ILLEGAL_VALUE
          An element or attribute value was invalid.
static java.lang.String EVENT_MULTIPLE_OCCURRENCIES
          An element occurred more than expected.
static java.lang.String EVENT_PREMATURE_END_ELEMENT
          Some of an elements child are missing.
static java.lang.String EVENT_PROCESSING_INSTRUCTION
          A processing instruction was found.
static java.lang.String EVENT_SKIPPED_ENTITY
          A skipped entity was found.
static java.lang.String EVENT_UNEXPECTED_CHILD_ELEMENT
          An unexpected child was found in an atomic element or in a complex element with simple content.
static java.lang.String EVENT_UNEXPECTED_CHILD_STATE
          A child element was not expected at this place.
static java.lang.String EVENT_UNEXPECTED_TEXTUAL_CONTENTS
          Unexpected textual contents have been found.
static java.lang.String EVENT_UNKNOWN_ANY_ATTRIBUTE
          An attribute with an invalid namespace was detected in an element with an "anyAttribute" declaration.
static java.lang.String EVENT_UNKNOWN_ATTRIBUTE
          An attribute was unknown.
static java.lang.String EVENT_WRONG_ROOT_ELEMENT
          The root elements type was wrong.
 

Field Detail

EVENT_CHOICE_GROUP_REUSE

static final java.lang.String EVENT_CHOICE_GROUP_REUSE
More than one alternative in a choice group have been used.

See Also:
Constant Field Values

EVENT_PROCESSING_INSTRUCTION

static final java.lang.String EVENT_PROCESSING_INSTRUCTION

A processing instruction was found. JaxMe doesn't know how to handle processing instruction, thus they are treated as a validation event, possibly throwing an exception.

This behaviour is questionable. It may very well be changed at a later time, if another way of handling processing instructions is defined. However, if we throw an event now, the possible change is upwards compatible.

See Also:
Constant Field Values

EVENT_SKIPPED_ENTITY

static final java.lang.String EVENT_SKIPPED_ENTITY

A skipped entity was found. JaxMe doesn't know how to handle skipped entities, thus they are treated as a validation event, possibly throwing an exception.

This behaviour is questionable. It may very well be changed at a later time, if another way of handling skipped entities is defined. However, if we throw an event now, the possible change is upwards compatible.

See Also:
Constant Field Values

EVENT_UNEXPECTED_TEXTUAL_CONTENTS

static final java.lang.String EVENT_UNEXPECTED_TEXTUAL_CONTENTS

Unexpected textual contents have been found. For example, a sequence must not have embedded text, because it would have mixed content otherwise. Textual content is ignored, if it consists of whitespace characters only.

See Also:
Constant Field Values

EVENT_UNEXPECTED_CHILD_ELEMENT

static final java.lang.String EVENT_UNEXPECTED_CHILD_ELEMENT

An unexpected child was found in an atomic element or in a complex element with simple content.

See Also:
Constant Field Values

EVENT_ALL_GROUP_REUSE

static final java.lang.String EVENT_ALL_GROUP_REUSE
A childs of an all group was used more than once.

See Also:
Constant Field Values

EVENT_UNEXPECTED_CHILD_STATE

static final java.lang.String EVENT_UNEXPECTED_CHILD_STATE

A child element was not expected at this place. For example, in the case of a choice, this may indicate that more than one of the possible elements have been found. In the case of a sequence, this can indicate a mismatch in the order of the child elements.

See Also:
Constant Field Values

EVENT_ADDITIONAL_CHILD_ELEMENT

static final java.lang.String EVENT_ADDITIONAL_CHILD_ELEMENT

A complex elements child is unknown. A possible reason is an error in the child elements name.

See Also:
Constant Field Values

EVENT_MULTIPLE_OCCURRENCIES

static final java.lang.String EVENT_MULTIPLE_OCCURRENCIES

An element occurred more than expected. In other words, the elements maxOccurs facet was violated.

See Also:
Constant Field Values

EVENT_WRONG_ROOT_ELEMENT

static final java.lang.String EVENT_WRONG_ROOT_ELEMENT

The root elements type was wrong.

See Also:
Constant Field Values

EVENT_ILLEGAL_VALUE

static final java.lang.String EVENT_ILLEGAL_VALUE

An element or attribute value was invalid. For example, in the case of a dateTime instance, this may indicate an unparseable date.

See Also:
Constant Field Values

EVENT_UNKNOWN_ATTRIBUTE

static final java.lang.String EVENT_UNKNOWN_ATTRIBUTE

An attribute was unknown.

See Also:
Constant Field Values

EVENT_UNKNOWN_ANY_ATTRIBUTE

static final java.lang.String EVENT_UNKNOWN_ANY_ATTRIBUTE

An attribute with an invalid namespace was detected in an element with an "anyAttribute" declaration.

See Also:
Constant Field Values

EVENT_PREMATURE_END_ELEMENT

static final java.lang.String EVENT_PREMATURE_END_ELEMENT
Some of an elements child are missing.