1 /*******************************************************************************
2 * Copyright (c) 2013 University of Stuttgart.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * and the Apache License 2.0 which both accompany this distribution,
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
7 * and http://www.apache.org/licenses/LICENSE-2.0
10 * Oliver Kopp - initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.winery.common.propertydefinitionkv;
14 import javax.xml.bind.annotation.XmlRootElement;
16 @XmlRootElement(name = "PropertyDefinition")
17 public class PropertyDefinitionKV {
23 public PropertyDefinitionKV() {
27 public PropertyDefinitionKV(String key, String type) {
33 public String getKey() {
37 public void setKey(String key) {
39 throw new IllegalArgumentException();
44 public String getType() {
48 public void setType(String type) {
50 throw new IllegalArgumentException();
56 public int hashCode() {
57 return this.key.hashCode();