All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.exolab.castor.xml.XMLConstants Maven / Gradle / Ivy

Go to download

The core XML data binding framework with support for marshalling Java objects to and unmarshalling from XML documents.

The newest version!
/*
 * Copyright 2006 Edward Kuns
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package org.exolab.castor.xml;

/**
 * Constants used by all of Castor-XML are defined here.
 *
 * @author Edward Kuns
 * @version $Revision: 0000 $ $Date: $
 */
public interface XMLConstants {
  /** Descriptors are placed into this special package relative to the generated source. */
  String DESCRIPTOR_PACKAGE = "descriptors";

  /** This suffix is added to a class name to make its descriptor. */
  String DESCRIPTOR_SUFFIX = "Descriptor";

  /** Whitespace preserve (keep exactly as-is). */
  String WHITESPACE_PRESERVE = "preserve";

  /** Whitespace replace (replace each whitespace with a blank). */
  String WHITESPACE_REPLACE = "replace";

  /**
   * Whitespace collapse (replace each whitespace with a blank, remove leading and trailing
   * whitespace, collapse consecutive blanks into exactly one blank).
   */
  String WHITESPACE_COLLAPSE = "collapse";

  /** XML name type NCName. (non-colonized name.) */
  short NAME_TYPE_NCNAME = 0;

  /** XML name type NMTOKEN. (name token.) */
  short NAME_TYPE_NMTOKEN = 1;

  /** XML name type CDATA. (character data.) */
  short NAME_TYPE_CDATA = 2;

  /** XML name type QNAME. (qualified name.) */
  short NAME_TYPE_QNAME = 3;

  /** name of per package mapping file. */
  String PKG_MAPPING_FILE = ".castor.xml";

  /** name of the class descriptor resolver file. */
  String PKG_CDR_LIST_FILE = ".castor.cdr";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy