franta-hg@104: /** franta-hg@104: * SQL-DK franta-hg@104: * Copyright © 2013 František Kučera (frantovo.cz) franta-hg@104: * franta-hg@104: * This program is free software: you can redistribute it and/or modify franta-hg@104: * it under the terms of the GNU General Public License as published by franta-hg@104: * the Free Software Foundation, either version 3 of the License, or franta-hg@104: * (at your option) any later version. franta-hg@104: * franta-hg@104: * This program is distributed in the hope that it will be useful, franta-hg@104: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@104: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@104: * GNU General Public License for more details. franta-hg@104: * franta-hg@104: * You should have received a copy of the GNU General Public License franta-hg@104: * along with this program. If not, see . franta-hg@104: */ franta-hg@104: package info.globalcode.sql.dk.configuration; franta-hg@104: franta-hg@104: import javax.xml.bind.annotation.XmlAttribute; franta-hg@104: import javax.xml.bind.annotation.XmlValue; franta-hg@104: franta-hg@104: /** franta-hg@104: * One configurable franta-hg@104: * franta-hg@104: * @author Ing. František Kučera (frantovo.cz) franta-hg@104: */ franta-hg@104: public class Property implements NameIdentified { franta-hg@104: franta-hg@104: private String name; franta-hg@104: private String value; franta-hg@104: franta-hg@104: public Property() { franta-hg@104: } franta-hg@104: franta-hg@104: public Property(String name, String value) { franta-hg@104: this.name = name; franta-hg@104: this.value = value; franta-hg@104: } franta-hg@104: franta-hg@104: @XmlAttribute(name = "name") franta-hg@104: @Override franta-hg@104: public String getName() { franta-hg@104: return name; franta-hg@104: } franta-hg@104: franta-hg@104: public void setName(String name) { franta-hg@104: this.name = name; franta-hg@104: } franta-hg@104: franta-hg@104: @XmlValue franta-hg@104: public String getValue() { franta-hg@104: return value; franta-hg@104: } franta-hg@104: franta-hg@104: public void setValue(String value) { franta-hg@104: this.value = value; franta-hg@104: } franta-hg@104: franta-hg@104: @Override franta-hg@104: public String toString() { franta-hg@104: return name + "='" + value + "'"; franta-hg@104: } franta-hg@104: }