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.acacia.client.widgets.complex;
029
030/**
031 * Represents a data view value to be read from or written to the editor by the data view widget.<p>
032 */
033public class CmsDataViewValue {
034
035    /** The id. */
036    private String m_id;
037
038    /** The title. */
039    private String m_title;
040
041    /** The description. */
042    private String m_description;
043
044    /** The additional data. */
045    private String m_data;
046
047    /**
048     * Creates a new instance.<p>
049     *
050     * @param id the id
051     * @param title the title
052     * @param description the description
053     * @param data the additional data
054     */
055    public CmsDataViewValue(String id, String title, String description, String data) {
056        super();
057        m_id = id;
058        m_title = title;
059        m_description = description;
060        m_data = data;
061    }
062
063    /**
064     * Returns the data.<p>
065     *
066     * @return the data
067     */
068    public String getData() {
069
070        return m_data;
071    }
072
073    /**
074     * Returns the description.<p>
075     *
076     * @return the description
077     */
078    public String getDescription() {
079
080        return m_description;
081    }
082
083    /**
084     * Returns the id.<p>
085     *
086     * @return the id
087     */
088    public String getId() {
089
090        return m_id;
091    }
092
093    /**
094     * Returns the title.<p>
095     *
096     * @return the title
097     */
098    public String getTitle() {
099
100        return m_title;
101    }
102
103}