Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Dali/Indigo/JAXB 2.x/SchemaValidation"
Line 4: | Line 4: | ||
== Document History == | == Document History == | ||
− | + | {|{{BMTableStyle}} | |
− | {| | + | |-{{BMTHStyle}} |
+ | ! Date | ||
+ | ! Author | ||
+ | ! Version Description & Notes | ||
|- | |- | ||
− | + | !10-5-2010 | |
− | + | !Paul Fullbright | |
− | + | !Draft | |
− | + | ||
− | ! 10-5-2010 | + | |
− | ! Paul Fullbright | + | |
− | ! Draft | + | |
|} | |} | ||
Revision as of 15:44, 5 October 2010
Contents
Functional Specification: JAXB Schema Validation
[enter bug location here]
Document History
Date | Author | Version Description & Notes |
---|---|---|
10-5-2010 | Paul Fullbright | Draft |
Feature overview
This feature is about validating project JAXB content against one or more XML schemas
Goals:
- Allow users to specify none or more schemas against which to validate their JAXB classes
- Allow for as many different ways of specifying a schema as possible
Concepts
This concept of validation is different from the concept of validation covered in the JAXB specification. That concept dictates how and when XML instance documents are to be validated against the schema that defines them, whereas this concept dictates how the java (and associated) metadata is to be validated against the metadata of the schema. That is, it is an application of the rules of the JAXB specification in a user friendly format.
When a user generates a java object model from a schema, it is assumed that the object model is already valid. When a user is generating a schema from a java object model, obviously there is no schema yet against which to validate. But when a user is defining a meet-in-the-middle java object model against an existing XML schema (or when he is modifying a java object model that he has either generated from a schema or from which he has already generated a schema) this validation will describe where there are inconsistencies.
@XMLSchema annotation
The @XMLSchema annotation describes the namespace and prefixes of the schema with which the package is associated. It also describes a 'location' variable,
References
JAXB 2.2 specification download site