1 /* 2 * Copyright 2006 Edward Kuns 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 * in compliance with the License. You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 * or implied. See the License for the specific language governing permissions and limitations under 12 * the License. 13 */ 14 package org.exolab.castor.xml; 15 16 /** 17 * Constants used by all of Castor-XML are defined here. 18 * 19 * @author <a href="mailto:edward.kuns@aspect.com">Edward Kuns</a> 20 * @version $Revision: 0000 $ $Date: $ 21 */ 22 public interface XMLConstants { 23 /** Descriptors are placed into this special package relative to the generated source. */ 24 String DESCRIPTOR_PACKAGE = "descriptors"; 25 26 /** This suffix is added to a class name to make its descriptor. */ 27 String DESCRIPTOR_SUFFIX = "Descriptor"; 28 29 /** Whitespace preserve (keep exactly as-is). */ 30 String WHITESPACE_PRESERVE = "preserve"; 31 32 /** Whitespace replace (replace each whitespace with a blank). */ 33 String WHITESPACE_REPLACE = "replace"; 34 35 /** 36 * Whitespace collapse (replace each whitespace with a blank, remove leading and trailing 37 * whitespace, collapse consecutive blanks into exactly one blank). 38 */ 39 String WHITESPACE_COLLAPSE = "collapse"; 40 41 /** XML name type NCName. (non-colonized name.) */ 42 short NAME_TYPE_NCNAME = 0; 43 44 /** XML name type NMTOKEN. (name token.) */ 45 short NAME_TYPE_NMTOKEN = 1; 46 47 /** XML name type CDATA. (character data.) */ 48 short NAME_TYPE_CDATA = 2; 49 50 /** XML name type QNAME. (qualified name.) */ 51 short NAME_TYPE_QNAME = 3; 52 53 /** name of per package mapping file. */ 54 String PKG_MAPPING_FILE = ".castor.xml"; 55 56 /** name of the class descriptor resolver file. */ 57 String PKG_CDR_LIST_FILE = ".castor.cdr"; 58 }