001    /*
002     * Copyright (C) 2010 Evgeny Mandrikov
003     *
004     * Sonar-IDE is free software; you can redistribute it and/or
005     * modify it under the terms of the GNU Lesser General Public
006     * License as published by the Free Software Foundation; either
007     * version 3 of the License, or (at your option) any later version.
008     *
009     * Sonar-IDE is distributed in the hope that it will be useful,
010     * but WITHOUT ANY WARRANTY; without even the implied warranty of
011     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012     * Lesser General Public License for more details.
013     *
014     * You should have received a copy of the GNU Lesser General Public
015     * License along with Sonar-IDE; if not, write to the Free Software
016     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
017     */
018    
019    package org.sonar.ide.shared.measures;
020    
021    import org.sonar.ide.api.IMeasure;
022    import org.sonar.wsclient.services.Metric;
023    
024    /**
025     * @author Evgeny Mandrikov
026     * @since 0.2
027     */
028    public final class MeasureData implements IMeasure {
029    
030      private Metric metric;
031      private String value;
032    
033      /**
034       * {@inheritDoc}
035       */
036      public Metric getMetricDef() {
037        return metric;
038      }
039    
040      public MeasureData setMetricDef(Metric metric) {
041        this.metric = metric;
042        return this;
043      }
044    
045      /**
046       * {@inheritDoc}
047       */
048      public String getValue() {
049        return value;
050      }
051    
052      public MeasureData setValue(String value) {
053        this.value = value;
054        return this;
055      }
056    
057    }