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

com.topologi.diffx.util.Constants Maven / Gradle / Ivy

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 6.1.2
Show newest version
/*
 * This file is part of the DiffX library.
 *
 * For licensing information please see the file license.txt included in the release.
 * A copy of this licence can also be found at
 *   http://www.opensource.org/licenses/artistic-license-2.0.php
 */
package com.topologi.diffx.util;

import javax.xml.XMLConstants;

/**
 * The set of constants used in this API.
 * 
 * @author Christophe Lauret
 * @version 17 May 2005
 */
public final class Constants {

  /**
   * Prevent creation of instances
   */
  private Constants() {
  }

  // Diff-x specific constants
  // ----------------------------------------------------------------------------------------------

  /**
   * The namespace URI used for elements that may have been modified.
   */
  public static final String BASE_NS_URI = "http://www.topologi.com/2005/Diff-X";

  /**
   * The namespace URI used for elements that may have been deleted.
   */
  public static final String DELETE_NS_URI = BASE_NS_URI + "/Delete";

  /**
   * The namespace URI used for elements that may have been inserted.
   */
  public static final String INSERT_NS_URI = BASE_NS_URI + "/Insert";

  // XML constants (deprecated use Java 5 XMLConstants instead)
  // ----------------------------------------------------------------------------------------------

  /**
   * The default URI (empty).
   * 
   * Same as {@link XMLConstants#NULL_NS_URI}.
   * 
   * @deprecated Use {@link XMLConstants#NULL_NS_URI} instead.
   */
  @Deprecated public static final String DEFAULT_URI = XMLConstants.NULL_NS_URI;

  /**
   * The official XML namespace prefix.
   *
   * Same as {@link XMLConstants#XML_NS_PREFIX}.
   * 
   * @deprecated Use {@link XMLConstants#XML_NS_PREFIX} instead.
   */
  @Deprecated public static final String XML_NS_PREFIX = XMLConstants.XML_NS_PREFIX;

  /**
   * The official XML Namespace name URI.
   *
   * Same as {@link XMLConstants#XML_NS_URI}.
   * 
   * @deprecated Use {@link XMLConstants#XML_NS_URI} instead.
   */
  @Deprecated public static final String XML_NS_URI = XMLConstants.XML_NS_URI;

  /**
   * The official XML attribute used for specifying XML namespace declarations, XMLConstants.XMLNS_ATTRIBUTE, namespace URI.
   * 
   * Defined by the XML specification to be "http://www.w3.org/2000/xmlns/".
   * 
   * @deprecated Use {@link XMLConstants#XMLNS_ATTRIBUTE_NS_URI} instead.
   */
  @Deprecated public static final String XMLNS_ATTRIBUTE_NS_URI = XMLConstants.XMLNS_ATTRIBUTE_NS_URI;

  /**
   * The official XML attribute used for specifying XML Namespace declarations.
   *
   * It is NOT valid to use as a prefix. Defined by the XML specification to be "xmlns".
   * 
   * @deprecated Use {@link XMLConstants#XMLNS_ATTRIBUTE} instead.
   */
  @Deprecated public static final String XMLNS_ATTRIBUTE = XMLConstants.XMLNS_ATTRIBUTE;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy