001/* Copyright (C) 2014 konik.io 002 * 003 * This file is part of the Konik library. 004 * 005 * The Konik library is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * The Konik library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with the Konik library. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package io.konik.zugferd.unqualified; 020 021import io.konik.validator.annotation.NotBlank; 022 023import javax.xml.bind.annotation.XmlAttribute; 024import javax.xml.bind.annotation.XmlSchemaType; 025import javax.xml.bind.annotation.XmlType; 026import javax.xml.bind.annotation.XmlValue; 027import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 028import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 029import java.io.Serializable; 030 031/** 032 * = The classification code 033 */ 034@XmlType(name = "CodeType", propOrder = { "value" }) 035public class Code implements Serializable { 036 037 @XmlValue 038 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 039 @XmlSchemaType(name = "token") 040 private String value; 041 042 @XmlAttribute(name = "listID") 043 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 044 @XmlSchemaType(name = "token") 045 private String listId; 046 047 @XmlAttribute(name = "listVersionID") 048 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 049 @XmlSchemaType(name = "token") 050 private String listVersionId; 051 052 /** 053 * Gets the value. 054 * 055 * @return the value 056 */ 057 @NotBlank 058 public String getValue() { 059 return value; 060 } 061 062 /** 063 * Sets the value. 064 * 065 * @param value the value 066 */ 067 public void setValue(String value) { 068 this.value = value; 069 } 070 071 /** 072 * Gets the list id. 073 * 074 * @return the list id 075 */ 076 @NotBlank 077 public String getListID() { 078 return listId; 079 } 080 081 /** 082 * Sets the list id. 083 * 084 * @param value the list id 085 */ 086 public void setListID(String value) { 087 this.listId = value; 088 } 089 090 /** 091 * Gets the list version id. 092 * 093 * @return the list version id 094 */ 095 public String getListVersionID() { 096 return listVersionId; 097 } 098 099 /** 100 * Sets the list version id. 101 * 102 * @param value the list version id 103 */ 104 public void setListVersionID(String value) { 105 this.listVersionId = value; 106 } 107 108}