| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AttributeValue |
|
| 1.0;1 |
| 1 | /* | |
| 2 | Copyright (c) 2006, University of Tromsø | |
| 3 | All rights reserved. | |
| 4 | ||
| 5 | Redistribution and use in source and binary forms, with or without | |
| 6 | modification, are permitted provided that the following conditions are met: | |
| 7 | ||
| 8 | * Redistributions of source code must retain the above copyright notice, this list | |
| 9 | of conditions and the following disclaimer. | |
| 10 | ||
| 11 | * Redistributions in binary form must reproduce the above copyright notice, this | |
| 12 | list of conditions and the following disclaimer in the documentation and/or other | |
| 13 | materials provided with the distribution. | |
| 14 | ||
| 15 | * Neither the name of the University of Tromsø nor the names of its contributors may | |
| 16 | be used to endorse or promote products derived from this software without specific | |
| 17 | prior written permission. | |
| 18 | ||
| 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | |
| 20 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
| 21 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | |
| 22 | SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | |
| 23 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | |
| 24 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | |
| 25 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
| 26 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | |
| 27 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | |
| 28 | DAMAGE. | |
| 29 | */ | |
| 30 | ||
| 31 | package argos.metadata; | |
| 32 | ||
| 33 | import java.io.Serializable; | |
| 34 | ||
| 35 | /** | |
| 36 | * Created on 05.jul.2006 | |
| 37 | * | |
| 38 | * @author Dan Peder Eriksen | |
| 39 | */ | |
| 40 | public class AttributeValue implements Serializable { | |
| 41 | public static final long serialVersionUID = 2807813948753458L; | |
| 42 | private String name; | |
| 43 | private String value; | |
| 44 | ||
| 45 | public AttributeValue(String name, String value) { | |
| 46 | 0 | super(); |
| 47 | 0 | this.name = name; |
| 48 | 0 | this.value = value; |
| 49 | 0 | } |
| 50 | ||
| 51 | public String getName() { | |
| 52 | 0 | return name; |
| 53 | } | |
| 54 | ||
| 55 | public String getValue() { | |
| 56 | 0 | return value; |
| 57 | } | |
| 58 | ||
| 59 | public void setValue(String value) { | |
| 60 | 0 | this.value = value; |
| 61 | 0 | } |
| 62 | } |