Perhaps a little bit unusual, but this is a specification of
the XML Schema subset supported by JaxMe as an XML Schema.
Not very readable, of course, but hopefully complete and
sufficiently formal.
Attributes that the XsdSchemaReaders recognizes in jm:defaults
or jm:type.
The Java package, in which the generated
classes should reside. The builtin default is the
root package.
A default for the superclass of the generated XML
elements. Defaults to de.ispsoft.jaxme.JMAnyElement.
Attributes that the XsdJdbcSchemaReaders recognizes in jdm:defaults
or jdm:type.
If this attribute is present and non-empty, then
it specifies a JNDI name, that can be used to
lookup a javax.sql.DataSource in order to read
table metadata via JDBC. As an alternative you
may specify the attributes driver and url.
If this attribute is present and non-empty, then
it specifies a JDBC driver class, that can be used to
create a java.sql.Connection in order to read
table metadata via JDBC. If you specify a JDBC
driver, you should also specify a JDBC Url in the
attribute url. As an alternative you
may specify the attribute datasource.
If this attribute is present and non-empty, then
it specifies a JDBC Url, that can be used to
create a java.sql.Connection in order to read
table metadata via JDBC. If you specify a JDBC
url, you should also specify a JDBC driver in the
attribute driver. As an alternative you
may specify the attribute datasource.
Specifies the JDBC user name that is used
to connect to the database in order to read
table metadata via JDBC.
Specifies the JDBC password that is used
to connect to the database in order to read
table metadata via JDBC.
Specifies whether created managers should extend
de.ispsoft.jaxme.JMJdbcManager (false) or
de.ispsoft.jaxme.JMJdbcDataSourceManager (true).
The default is true, if a datasource attribute
is present.
The field name is used in the generated classes to hold
an instance of the element and/or attribute (a list of
instances, if maxOccurs > 1). By default the elements or
attributes local name is converted into a Java identifier
like "eLocalName" (elements) or "aLocalName" (attributes).
Without a prefix, specifies the elements local name. The namespace
is given by the schemas targetNamespace. With a prefix, the namespace
is choosen according to the prefix mapping.
For simple elements or attributes: A class implementing
de.ispsoft.jaxme.generator.SchemaType, typically one from
de.ispsoft.jaxme.generator.types. The default is "string".
For complex elements: The name of a defined complex type.
Either of "qualified" or "unqualified"; defaults to the
value of "elementFormDefault" or "attributeFormDefault",
respectively.
Not surprising, the "schema" element is on top. It may contain
an "annotation" instance, followed by an arbitrary number of
"element" childs.
Various defaults for
de.ispsoft.jaxme.generator.XsdSchemaReader and its
subclasses. All attributes can be overwritten per
"element".
Various defaults for
de.ispsoft.jaxme.generator.XsdJdbcSchemaReader and its
subclasses. All attributes can be overwritten per
"element".
Specifies a namespace for element names without prefix.
Either of "qualified" or "unqualified" (default)
Either of "qualified" or "unqualified" (default)
Elements are mapped to a subclass of de.ispsoft.jaxme.JMAnyElement,
if they are complex, otherwise to one of the runtime classes from
de.ispsoft.jaxme.generator.types.
Various settings for
de.ispsoft.jaxme.generator.XsdSchemaReader and its
subclasses. Some of them may have defaults in
xs:schema/xs:annotation/xs:appinfo/jm:defaults.
For complex elements: The name of the generated class.
Defaults to "ClsLocalName".
Various settings for
de.ispsoft.jaxme.generator.XsdJdbcSchemaReader and its
subclasses. Some of them may have defaults in
xs:schema/xs:annotation/xs:appinfo/jm:defaults.
Indicates, that the element type is complex. A complex
element will be mapped to a subclass of
de.ispsoft.jaxme.JMAnyElement.
Indicates, that the element type is simple. (Default)
A simple element is mapped to a Java class implementing
de.ispsoft.jaxme.generator.SchemaType, typically one from
de.ispsoft.jaxme.generator.types.
Specifies the minimum number of occurrencies. Defaults to 1.
Must be lower or equal to maxOccurs. Zero indicates,
that the corresponding Java field may be null for valid
documents.
Specifies the maximum number of occurrencies. Defaults to 1.
Must be greater or equal to minOccurs. The special value
"unbounded" may be used to specify an arbitrary number of
occurrencies. If maxOccurs is 2 or more, then the
corresponding Java field will be a List with the proper
number of elements. Again, the field may be null, if
minOccurs is zero.
Definition of a complex type
Definition of an anonymous or named complexType.
Adds an attribute to the complex element.
Missing or "required".
For use in definition of complex types: The type name.