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

org.opencms.configuration.I_CmsXmlConfiguration Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

There is a newer version: 18.0
Show newest version
/*
 * This library is part of OpenCms -
 * the Open Source Content Management System
 *
 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH & Co. KG, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.configuration;

import org.apache.commons.digester.Digester;

import org.dom4j.Element;

/**
 * Each configurable element in OpenCms must implement this interface.

* * @since 6.0.0 */ public interface I_CmsXmlConfiguration extends I_CmsConfigurationParameterHandler { /** The "alias" attribute. */ String A_ALIAS = "alias"; /** The "class" attribute. */ String A_CLASS = "class"; /** The "count" attribute. */ String A_COUNT = "count"; /** The "default" attribute. */ String A_DEFAULT = "default"; /** The "destination" attribute. */ String A_DESTINATION = "destination"; /** The "enabled" attibute. */ String A_ENABLED = "enabled"; /** The "from" attribute. */ String A_FROM = "from"; /** The "handler" attribute. */ String A_HANDLER = "handler"; /** The "icon" attribute. */ String A_ICON = "icon"; /** The "id" attribute. */ String A_ID = "id"; /** The "key" attribute. */ String A_KEY = "key"; /** The "name" attribute. */ String A_NAME = "name"; /** The "order" attribute. */ String A_ORDER = "order"; /** The "password" attribute. */ String A_PASSWORD = "password"; /** The "protocol" attribute. */ String A_PROTOCOL = "protocol"; /** The "protocol" attribute. */ String A_PORT = "port"; /** The suffix attribute. */ String A_SUFFIX = "suffix"; /** The "to" attribute. */ String A_TO = "to"; /** The "type" attribute. */ String A_TYPE = "type"; /** The "mode" attribute. */ String A_MODE = "mode"; /** The "uri" attribute. */ String A_URI = "uri"; /** The "user" attribute. */ String A_USER = "user"; /** The "value" attribute. */ String A_VALUE = "value"; /** Individual export point node. */ String N_EXPORTPOINT = "exportpoint"; /** Export points master node. */ String N_EXPORTPOINTS = "exportpoints"; /** An individual name node. */ String N_NAME = "name"; /** The "param" node name for generic parameters. */ String N_PARAM = "param"; /** An individual property node. */ String N_PROPERTY = "property"; /** An individual resource node. */ String N_RESOURCE = "resource"; /** An individual site node. */ String N_SITE = "site"; /** An individual value node. */ String N_VALUE = "value"; /** * Digests an XML node and creates an instance of this configurable class.

* * @param digester the digester to use */ void addXmlDigesterRules(Digester digester); /** * Generates the XML element for this configurable class.

* * @param parent the parent element in the XML tree * @return the XML element for this configurable class */ Element generateXml(Element parent); /** * Returns the name of the DTD file for this XML configuration, * e.g. opencms-configuration.dtd.

* * @return the name of the DTD file for this XML configuration * @see #getDtdSystemLocation() * @see #getDtdUrlPrefix() */ String getDtdFilename(); /** * Returns the internal system location of the DTD file for this XML configuration, * e.g. org/opencms/configuration/.

* * If this is not null, then the DTD is not read through the * web URL, but an internal name resolution is added that resolves the * system id of the DTD to * {@link #getDtdSystemLocation()} + {@link #getDtdUrlPrefix()}.

* * @return the system location of the DTD file for this XML configuration * @see #getDtdUrlPrefix() * @see #getDtdFilename() */ String getDtdSystemLocation(); /** * Returns the external system id prefix of the DTD file for this XML configuration, * e.g. http://www.opencms.org/dtd/6.0/.

* * The full system id for the DTD is calculated like this: * {@link #getDtdSystemLocation()} + {@link #getDtdUrlPrefix()}.

* * @return the system id prefix of the DTD file for this XML configuration * @see #getDtdSystemLocation() * @see #getDtdFilename() */ String getDtdUrlPrefix(); /** * Returns the name of the XML input file for this configuration, * e.g. opencms.xml.

* * @return the name of the XML input file for this configuration */ String getXmlFileName(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy