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.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
057        super();
058        m_id = id;
059        m_title = title;
060        m_description = description;
061        m_data = data;
062    }
063
064    /**
065     * Returns the data.<p>
066     *
067     * @return the data
068     */
069    public String getData() {
070
071        return m_data;
072    }
073
074    /**
075     * Returns the description.<p>
076     *
077     * @return the description
078     */
079    public String getDescription() {
080
081        return m_description;
082    }
083
084    /**
085     * Returns the id.<p>
086     *
087     * @return the id
088     */
089    public String getId() {
090
091        return m_id;
092    }
093
094    /**
095     * Returns the title.<p>
096     *
097     * @return the title
098     */
099    public String getTitle() {
100
101        return m_title;
102    }
103
104}