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; 029 030/** 031 * = The classification code 032 */ 033@XmlType(name = "CodeType", propOrder = { "value" }) 034public class Code { 035 036 @XmlValue 037 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 038 @XmlSchemaType(name = "token") 039 private String value; 040 041 @XmlAttribute(name = "listID") 042 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 043 @XmlSchemaType(name = "token") 044 private String listId; 045 046 @XmlAttribute(name = "listVersionID") 047 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 048 @XmlSchemaType(name = "token") 049 private String listVersionId; 050 051 /** 052 * Gets the value. 053 * 054 * @return the value 055 */ 056 @NotBlank 057 public String getValue() { 058 return value; 059 } 060 061 /** 062 * Sets the value. 063 * 064 * @param value the value 065 */ 066 public void setValue(String value) { 067 this.value = value; 068 } 069 070 /** 071 * Gets the list id. 072 * 073 * @return the list id 074 */ 075 @NotBlank 076 public String getListID() { 077 return listId; 078 } 079 080 /** 081 * Sets the list id. 082 * 083 * @param value the list id 084 */ 085 public void setListID(String value) { 086 this.listId = value; 087 } 088 089 /** 090 * Gets the list version id. 091 * 092 * @return the list version id 093 */ 094 public String getListVersionID() { 095 return listVersionId; 096 } 097 098 /** 099 * Sets the list version id. 100 * 101 * @param value the list version id 102 */ 103 public void setListVersionID(String value) { 104 this.listVersionId = value; 105 } 106 107}