001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.xml.containerpage;
029
030/**
031 * Configuration bean for meta mappings.<p>
032 */
033public class CmsMetaMapping {
034
035    /** The mapping key. */
036    private String m_key;
037
038    /** The mapped element xpath. */
039    private String m_element;
040
041    /** The mapping order. */
042    private int m_order;
043
044    /** The mapping default value. */
045    private String m_defaultValue;
046
047    /**
048     * Constructor.<p>
049     *
050     * @param key the mapping key
051     * @param element the mapped element xpath
052     * @param order the mapping order
053     * @param defaultValue the mapping default value
054     */
055    public CmsMetaMapping(String key, String element, int order, String defaultValue) {
056        m_key = key;
057        m_element = element;
058        m_order = order;
059        m_defaultValue = defaultValue;
060    }
061
062    /**
063     * Returns the mapping default value.<p>
064     *
065     * @return the mapping default value
066     */
067    public String getDefaultValue() {
068
069        return m_defaultValue;
070    }
071
072    /**
073     * Returns the mapped element xpath.<p>
074     *
075     * @return the mapped element xpath
076     */
077    public String getElement() {
078
079        return m_element;
080    }
081
082    /**
083     * Returns the mapping key.<p>
084     *
085     * @return the mapping key
086     */
087    public String getKey() {
088
089        return m_key;
090    }
091
092    /**
093     * Returns the mapping order.<p>
094     *
095     * @return the mapping order
096     */
097    public int getOrder() {
098
099        return m_order;
100    }
101
102}