1 /** 2 * Copyright (c) 2008, http://www.snakeyaml.org 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.yaml.snakeyaml.constructor; 17 18 import java.math.BigInteger; 19 import java.util.Date; 20 21 public class TestBean1 { 22 private String text; 23 private String id; 24 private Byte byteClass; 25 private byte bytePrimitive; 26 private Short shortClass; 27 private short shortPrimitive; 28 private Integer integer; 29 private int intPrimitive; 30 private Long longClass; 31 private long longPrimitive; 32 private Boolean booleanClass; 33 private boolean booleanPrimitive; 34 private Character charClass; 35 private char charPrimitive; 36 private BigInteger bigInteger; 37 private Float floatClass; 38 private float floatPrimitive; 39 private Double doubleClass; 40 private double doublePrimitive; 41 private Date date; 42 public String publicField; 43 static public Integer staticInteger; 44 45 public String getText() { 46 return text; 47 } 48 49 public void setText(String text) { 50 this.text = text; 51 } 52 53 public Integer getInteger() { 54 return integer; 55 } 56 57 public void setInteger(Integer integer) { 58 this.integer = integer; 59 } 60 61 public int getIntPrimitive() { 62 return intPrimitive; 63 } 64 65 public void setIntPrimitive(int intPrimitive) { 66 this.intPrimitive = intPrimitive; 67 } 68 69 public String getId() { 70 return id; 71 } 72 73 public void setId(String id) { 74 this.id = id; 75 } 76 77 public Byte getByteClass() { 78 return byteClass; 79 } 80 81 public void setByteClass(Byte byteClass) { 82 this.byteClass = byteClass; 83 } 84 85 public byte getBytePrimitive() { 86 return bytePrimitive; 87 } 88 89 public void setBytePrimitive(byte bytePrimitive) { 90 this.bytePrimitive = bytePrimitive; 91 } 92 93 public Short getShortClass() { 94 return shortClass; 95 } 96 97 public void setShortClass(Short shortClass) { 98 this.shortClass = shortClass; 99 } 100 101 public short getShortPrimitive() { 102 return shortPrimitive; 103 } 104 105 public void setShortPrimitive(short shortPrimitive) { 106 this.shortPrimitive = shortPrimitive; 107 } 108 109 public Long getLongClass() { 110 return longClass; 111 } 112 113 public void setLongClass(Long longClass) { 114 this.longClass = longClass; 115 } 116 117 public long getLongPrimitive() { 118 return longPrimitive; 119 } 120 121 public void setLongPrimitive(long longPrimitive) { 122 this.longPrimitive = longPrimitive; 123 } 124 125 public Boolean getBooleanClass() { 126 return booleanClass; 127 } 128 129 public void setBooleanClass(Boolean booleanClass) { 130 this.booleanClass = booleanClass; 131 } 132 133 public boolean isBooleanPrimitive() { 134 return booleanPrimitive; 135 } 136 137 public void setBooleanPrimitive(boolean booleanPrimitive) { 138 this.booleanPrimitive = booleanPrimitive; 139 } 140 141 public Character getCharClass() { 142 return charClass; 143 } 144 145 public void setCharClass(Character charClass) { 146 this.charClass = charClass; 147 } 148 149 public char getCharPrimitive() { 150 return charPrimitive; 151 } 152 153 public void setCharPrimitive(char charPrimitive) { 154 this.charPrimitive = charPrimitive; 155 } 156 157 public BigInteger getBigInteger() { 158 return bigInteger; 159 } 160 161 public void setBigInteger(BigInteger bigInteger) { 162 this.bigInteger = bigInteger; 163 } 164 165 public Float getFloatClass() { 166 return floatClass; 167 } 168 169 public void setFloatClass(Float floatClass) { 170 this.floatClass = floatClass; 171 } 172 173 public float getFloatPrimitive() { 174 return floatPrimitive; 175 } 176 177 public void setFloatPrimitive(float floatPrimitive) { 178 this.floatPrimitive = floatPrimitive; 179 } 180 181 public Double getDoubleClass() { 182 return doubleClass; 183 } 184 185 public void setDoubleClass(Double doubleClass) { 186 this.doubleClass = doubleClass; 187 } 188 189 public double getDoublePrimitive() { 190 return doublePrimitive; 191 } 192 193 public void setDoublePrimitive(double doublePrimitive) { 194 this.doublePrimitive = doublePrimitive; 195 } 196 197 public Date getDate() { 198 return date; 199 } 200 201 public void setDate(Date date) { 202 this.date = date; 203 } 204 }