View Javadoc
1   /*
2    * Copyright (C) 2019 sw4j.org
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16   */
17  package org.sw4j.tool.barcode.random.input;
18  
19  import com.fasterxml.jackson.annotation.JsonCreator;
20  import com.fasterxml.jackson.annotation.JsonProperty;
21  
22  /**
23   * <p>
24   * This class maps the input identifiers to Java objects.
25   * </p>
26   * <p>
27   * This class is immutable.
28   * </p>
29   * @author Uwe Plonus &lt;u.plonus@gmail.com&gt;
30   */
31  public class Identifier {
32  
33      /**
34       * <p>
35       * The identifier value itself.
36       * </p>
37       */
38      private final String ident;
39  
40      /**
41       * <p>
42       * Create a new {@code Identifier} with the given {@code ident}.
43       * </p>
44       * @param ident the identifiers value.
45       */
46      @JsonCreator
47      public Identifier(@JsonProperty("ident") final String ident) {
48          this.ident = ident;
49      }
50  
51      /**
52       * <p>
53       * The identifiers value.
54       * </p>
55       * @return the value.
56       */
57      public String getIdent() {
58          return ident;
59      }
60  
61  }