ApacheGeneratorConfiguration.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.utils.id;

  21. import org.openspcoop2.utils.id.apache.serial.EnumTypeGenerator;

  22. /**
  23.  * ApacheGeneratorConfiguration
  24.  *
  25.  *
  26.  * @author Andrea Poli (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class ApacheGeneratorConfiguration {

  31.     private EnumTypeGenerator type;
  32.     private boolean wrap;
  33.     private Integer size;
  34.     private Long initalLongValue;
  35.     private String initialStringValue;
  36.    
  37.     private String prefix;
  38.    
  39.     private Character startDigit;
  40.     private Character endDigit;
  41.     private Character startLetter;
  42.     private Character endLetter;
  43.    
  44.     private Boolean enableLowerCaseLetter;
  45.     private Boolean enableUpperCaseLetter;
  46.    
  47.     public EnumTypeGenerator getType() {
  48.         return this.type;
  49.     }
  50.     public void setType(EnumTypeGenerator type) {
  51.         this.type = type;
  52.     }
  53.     public boolean isWrap() {
  54.         return this.wrap;
  55.     }
  56.     public void setWrap(boolean wrap) {
  57.         this.wrap = wrap;
  58.     }
  59.     public Integer getSize() {
  60.         return this.size;
  61.     }
  62.     public void setSize(Integer size) {
  63.         this.size = size;
  64.     }
  65.     public Long getInitalLongValue() {
  66.         return this.initalLongValue;
  67.     }
  68.     public void setInitalLongValue(Long initalLongValue) {
  69.         this.initalLongValue = initalLongValue;
  70.     }
  71.     public String getInitialStringValue() {
  72.         return this.initialStringValue;
  73.     }
  74.     public void setInitialStringValue(String initialStringValue) {
  75.         this.initialStringValue = initialStringValue;
  76.     }
  77.     public Character getStartDigit() {
  78.         return this.startDigit;
  79.     }
  80.     public void setStartDigit(Character startDigit) {
  81.         this.startDigit = startDigit;
  82.     }
  83.     public Character getEndDigit() {
  84.         return this.endDigit;
  85.     }
  86.     public void setEndDigit(Character endDigit) {
  87.         this.endDigit = endDigit;
  88.     }
  89.     public Character getStartLetter() {
  90.         return this.startLetter;
  91.     }
  92.     public void setStartLetter(Character startLetter) {
  93.         this.startLetter = startLetter;
  94.     }
  95.     public Character getEndLetter() {
  96.         return this.endLetter;
  97.     }
  98.     public void setEndLetter(Character endLetter) {
  99.         this.endLetter = endLetter;
  100.     }
  101.     public Boolean isEnableLowerCaseLetter() {
  102.         return this.enableLowerCaseLetter;
  103.     }
  104.     public void setEnableLowerCaseLetter(Boolean enableLowerCaseLetter) {
  105.         this.enableLowerCaseLetter = enableLowerCaseLetter;
  106.     }
  107.     public Boolean isEnableUpperCaseLetter() {
  108.         return this.enableUpperCaseLetter;
  109.     }
  110.     public void setEnableUpperCaseLetter(Boolean enableUpperCaseLetter) {
  111.         this.enableUpperCaseLetter = enableUpperCaseLetter;
  112.     }
  113.     public String getPrefix() {
  114.         return this.prefix;
  115.     }
  116.     public void setPrefix(String prefix) {
  117.         this.prefix = prefix;
  118.     }
  119. }