Update of /cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/generator/types/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv9150/src/net/sf/jaxme/generator/types/impl
Modified Files:
Defaults.java
Log Message:
Added the JdbcSchemaWriter; see examples/jdbc/session.xsd and
docs/Reference.html. Added xs:schema/xs:annotation/xs:appinfo/jm:schema.
Index: Defaults.java
===================================================================
RCS file: /cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/generator/types/impl/Defaults.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Defaults.java 6 Mar 2003 20:50:50 -0000 1.10
+++ Defaults.java 31 Mar 2003 02:50:02 -0000 1.11
@@ -19,27 +19,38 @@
public class Defaults {
private static final SchemaType[] defaultTypes;
private static final SchemaAttribute[] defaultAttributes;
- private static final SchemaSimpleType stringType;
-
+ private static final SchemaSimpleType stringType = new StringType();
+ private static final SchemaSimpleType longType = new LongType();
+ private static final SchemaSimpleType base64BinaryType = new Base64BinaryType();
+ private static final SchemaSimpleType booleanType = new BooleanType();
+ private static final SchemaSimpleType dateType = new DateType();
+ private static final SchemaSimpleType dateTimeType = new DateTimeType();
+ private static final SchemaSimpleType decimalType = new DecimalType();
+ private static final SchemaSimpleType doubleType = new DoubleType();
+ private static final SchemaSimpleType floatType = new FloatType();
+ private static final SchemaSimpleType intType = new IntType();
+ private static final SchemaSimpleType shortType = new ShortType();
+ private static final SchemaSimpleType byteType = new ByteType();
+ private static final SchemaSimpleType timeType = new TimeType();
+
static {
- stringType = new StringType();
List list = new ArrayList();
- list.add(new BooleanType());
- list.add(new ByteType());
- list.add(new DateTimeType());
- list.add(new DateType());
- list.add(new DecimalType());
- list.add(new FloatType());
- list.add(new DoubleType());
+ list.add(booleanType);
+ list.add(byteType);
+ list.add(dateTimeType);
+ list.add(dateType);
+ list.add(decimalType);
+ list.add(floatType);
+ list.add(doubleType);
list.add(new IntegerType());
- list.add(new IntType());
- list.add(new LongType());
- list.add(new ShortType());
+ list.add(intType);
+ list.add(longType);
+ list.add(shortType);
list.add(stringType);
- list.add(new TimeType());
+ list.add(timeType);
list.add(new DurationType());
list.add(new HexBinaryType());
- list.add(new Base64BinaryType());
+ list.add(base64BinaryType);
list.add(new NonNegativeIntegerType());
list.add(new PositiveIntegerType());
list.add(new NonPositiveIntegerType());
@@ -97,5 +108,77 @@
*/
public static SchemaSimpleType getStringType() {
return stringType;
+ }
+
+ /** <p>Returns the long type.</p>
+ */
+ public static SchemaSimpleType getLongType() {
+ return longType;
+ }
+
+ /** <p>Returns the base 64 binary type.</p>
+ */
+ public static SchemaSimpleType getBase64BinaryType() {
+ return base64BinaryType;
+ }
+
+ /** <p>Returns the boolean type.</p>
+ */
+ public static SchemaSimpleType getBooleanType() {
+ return booleanType;
+ }
+
+ /** <p>Returns the date type.</p>
+ */
+ public static SchemaSimpleType getDateType() {
+ return dateType;
+ }
+
+ /** <p>Returns the dateTime type.</p>
+ */
+ public static SchemaSimpleType getDateTimeType() {
+ return dateTimeType;
+ }
+
+ /** <p>Returns the decimal type.</p>
+ */
+ public static SchemaSimpleType getDecimalType() {
+ return decimalType;
+ }
+
+ /** <p>Returns the int type.</p>
+ */
+ public static SchemaSimpleType getIntType() {
+ return intType;
+ }
+
+ /** <p>Returns the double type.</p>
+ */
+ public static SchemaSimpleType getDoubleType() {
+ return doubleType;
+ }
+
+ /** <p>Returns the float type.</p>
+ */
+ public static SchemaSimpleType getFloatType() {
+ return floatType;
+ }
+
+ /** <p>Returns the short type.</p>
+ */
+ public static SchemaSimpleType getShortType() {
+ return shortType;
+ }
+
+ /** <p>Returns the byte type.</p>
+ */
+ public static SchemaSimpleType getByteType() {
+ return byteType;
+ }
+
+ /** <p>Returns the time type.</p>
+ */
+ public static SchemaSimpleType getTimeType() {
+ return timeType;
}
}
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Jaxme-jaxb-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxme-jaxb-dev