The Apache Software Foundation > Apache XMLBeans
 

SchemaEnum Sample

Description

Author: Steve Traut

Available: 2004-09-15

Versions: xmlbeans-1.0.3, xmlbeans-v2

This sample illustrates how you can access XML values that are defined in schema as enumerations. When a schema containing enumerations is compiled, the generated Java types represent the schema enumerations with Java enumerations. You can access these through their constants and corresponding int values.

Files