KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > zeus > ZeusDefaults


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  */

19 package org.enhydra.zeus;
20
21 // Zeus imports
22
import org.enhydra.zeus.transform.TransformerOptions;
23 import org.enhydra.zeus.util.ClassUtils;
24
25 /**
26  * <p>
27  * <code>ZeusDefaults</code> defines constants used throughout
28  * the rest of the Zeus code base.
29  * </p>
30  *
31  * @author Brett McLaughlin
32  */

33 public class ZeusDefaults {
34     
35     /** XML Name for PCDATA elements */
36     public static final String JavaDoc PCDATA_XML_NAME = "PCDATA";
37     
38     /** Java Name for PCDATA variable */
39     public static final String JavaDoc PCDATA_JAVA_NAME = "value";
40
41     /** Name of the Zeus element XML name field. */
42     public static final String JavaDoc XML_NAME_FIELD = "ZEUS_XML_NAME";
43
44     /** Name of field for Zeus attributes array */
45     public static final String JavaDoc ATTRIBUTE_ARRAY_FIELD = "ZEUS_ATTRIBUTES";
46
47     /** Name of field for Zeus elements array */
48     public static final String JavaDoc ELEMENT_ARRAY_FIELD = "ZEUS_ELEMENTS";
49     
50     /** Name prefix for Zeus internal variables */
51     public static final String JavaDoc ZEUS_INTERNAL_PREFIX = "zeus_";
52
53     /** The default (and current) XML Schema namespace URI */
54     public static final String JavaDoc SCHEMA_NAMESPACE_URI =
55         "http://www.w3.org/2001/XMLSchema";
56         
57     /** Default XML parser to use */
58     public static final String JavaDoc DEFAULT_PARSER =
59         "org.apache.xerces.parsers.SAXParser";
60         
61     /** The default options for a Zeus Transformer */
62     public static final TransformerOptions DEFAULT_TRANSFORMER_OPTIONS =
63         new TransformerOptions("", ClassUtils.COLLECTION_TYPE_LIST);
64         
65     /** The default state for validation */
66     public static final Boolean JavaDoc DEFAULT_VALIDATION_STATE =
67         new Boolean JavaDoc(false);
68         
69     /** The system property to use for setting validation */
70     public static final String JavaDoc VALIDATION_SYSTEM_PROPERTY =
71         "org.enhydra.zeus.validation";
72         
73     /* -------------- Comments and other textual defaults ----------------- */
74     public static final String JavaDoc GENERATED_CLASS_COMMENT = new StringBuffer JavaDoc()
75         .append("/**\n")
76         .append(" * This class was generated from a set of XML constraints\n")
77         .append(" * by the Enhydra Zeus XML Data Binding Framework. All\n")
78         .append(" * source code in this file is constructed specifically\n")
79         .append(" * to work with other Zeus-generated classes. If you\n")
80         .append(" * modify this file by hand, you run the risk of breaking\n")
81         .append(" * this interoperation, as well as introducing errors in\n")
82         .append(" * source code compilation.\n")
83         .append(" *\n")
84         .append(" * * * * * MODIFY THIS FILE AT YOUR OWN RISK * * * * *\n")
85         .append(" *\n")
86         .append(" * To find out more about the Enhydra Zeus framework, you\n")
87         .append(" * can point your browser at <http://zeus.enhydra.org>\n")
88         .append(" * where you can download releases, join and discuss Zeus\n")
89         .append(" * on user and developer mailing lists, and access source\n")
90         .append(" * code. Please report any bugs through that website.\n")
91         .append(" */\n")
92         .toString();
93 }
94
95
Popular Tags