| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NodeStateAttribute |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.state; | |
| 2 | ||
| 3 | /* | |
| 4 | * This file is part of JTheque. | |
| 5 | * | |
| 6 | * JTheque is free software: you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation, either version 3 of the License. | |
| 9 | * | |
| 10 | * JTheque is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | */ | |
| 18 | ||
| 19 | /** | |
| 20 | * A node state attribute. | |
| 21 | * | |
| 22 | * @author Baptiste Wicht | |
| 23 | */ | |
| 24 | public final class NodeStateAttribute { | |
| 25 | private String key; | |
| 26 | private String value; | |
| 27 | ||
| 28 | /** | |
| 29 | * Construct a new NodeStateAttribute. | |
| 30 | * | |
| 31 | * @param key The key of the attribute. | |
| 32 | * @param value The value of the attribute. | |
| 33 | */ | |
| 34 | public NodeStateAttribute(String key, String value) { | |
| 35 | 0 | super(); |
| 36 | ||
| 37 | 0 | this.key = key; |
| 38 | 0 | this.value = value; |
| 39 | 0 | } |
| 40 | ||
| 41 | /** | |
| 42 | * Return the key of the attribute. | |
| 43 | * | |
| 44 | * @return The key. | |
| 45 | */ | |
| 46 | public String getKey() { | |
| 47 | 0 | return key; |
| 48 | } | |
| 49 | ||
| 50 | /** | |
| 51 | * Set the key of the attribute. | |
| 52 | * | |
| 53 | * @param key The key. | |
| 54 | */ | |
| 55 | public void setKey(String key) { | |
| 56 | 0 | this.key = key; |
| 57 | 0 | } |
| 58 | ||
| 59 | /** | |
| 60 | * Return the value of the attribute. | |
| 61 | * | |
| 62 | * @return The value. | |
| 63 | */ | |
| 64 | public String getValue() { | |
| 65 | 0 | return value; |
| 66 | } | |
| 67 | ||
| 68 | /** | |
| 69 | * Set the value of the attribute. | |
| 70 | * | |
| 71 | * @param value The value. | |
| 72 | */ | |
| 73 | public void setValue(String value) { | |
| 74 | 0 | this.value = value; |
| 75 | 0 | } |
| 76 | } |