001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (https://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: https://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: https://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
057        m_key = key;
058        m_element = element;
059        m_order = order;
060        m_defaultValue = defaultValue;
061    }
062
063    /**
064     * Returns the mapping default value.<p>
065     *
066     * @return the mapping default value
067     */
068    public String getDefaultValue() {
069
070        return m_defaultValue;
071    }
072
073    /**
074     * Returns the mapped element xpath.<p>
075     *
076     * @return the mapped element xpath
077     */
078    public String getElement() {
079
080        return m_element;
081    }
082
083    /**
084     * Returns the mapping key.<p>
085     *
086     * @return the mapping key
087     */
088    public String getKey() {
089
090        return m_key;
091    }
092
093    /**
094     * Returns the mapping order.<p>
095     *
096     * @return the mapping order
097     */
098    public int getOrder() {
099
100        return m_order;
101    }
102
103}