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