View Javadoc

    1   /**
    2    * Copyright (c) 2008-2011, 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
    17  package org.yaml.snakeyaml.constructor;
    18
    19  import java.math.BigInteger;
    20  import java.util.Date;
    21
    22  public class TestBean1 {
    23      private String text;
    24      private String id;
    25      private Byte byteClass;
    26      private byte bytePrimitive;
    27      private Short shortClass;
    28      private short shortPrimitive;
    29      private Integer integer;
    30      private int intPrimitive;
    31      private Long longClass;
    32      private long longPrimitive;
    33      private Boolean booleanClass;
    34      private boolean booleanPrimitive;
    35      private Character charClass;
    36      private char charPrimitive;
    37      private BigInteger bigInteger;
    38      private Float floatClass;
    39      private float floatPrimitive;
    40      private Double doubleClass;
    41      private double doublePrimitive;
    42      private Date date;
    43      public String publicField;
    44      static public Integer staticInteger;
    45
    46      public String getText() {
    47          return text;
    48      }
    49
    50      public void setText(String text) {
    51          this.text = text;
    52      }
    53
    54      public Integer getInteger() {
    55          return integer;
    56      }
    57
    58      public void setInteger(Integer integer) {
    59          this.integer = integer;
    60      }
    61
    62      public int getIntPrimitive() {
    63          return intPrimitive;
    64      }
    65
    66      public void setIntPrimitive(int intPrimitive) {
    67          this.intPrimitive = intPrimitive;
    68      }
    69
    70      public String getId() {
    71          return id;
    72      }
    73
    74      public void setId(String id) {
    75          this.id = id;
    76      }
    77
    78      public Byte getByteClass() {
    79          return byteClass;
    80      }
    81
    82      public void setByteClass(Byte byteClass) {
    83          this.byteClass = byteClass;
    84      }
    85
    86      public byte getBytePrimitive() {
    87          return bytePrimitive;
    88      }
    89
    90      public void setBytePrimitive(byte bytePrimitive) {
    91          this.bytePrimitive = bytePrimitive;
    92      }
    93
    94      public Short getShortClass() {
    95          return shortClass;
    96      }
    97
    98      public void setShortClass(Short shortClass) {
    99          this.shortClass = shortClass;
    100     }
    101
    102     public short getShortPrimitive() {
    103         return shortPrimitive;
    104     }
    105
    106     public void setShortPrimitive(short shortPrimitive) {
    107         this.shortPrimitive = shortPrimitive;
    108     }
    109
    110     public Long getLongClass() {
    111         return longClass;
    112     }
    113
    114     public void setLongClass(Long longClass) {
    115         this.longClass = longClass;
    116     }
    117
    118     public long getLongPrimitive() {
    119         return longPrimitive;
    120     }
    121
    122     public void setLongPrimitive(long longPrimitive) {
    123         this.longPrimitive = longPrimitive;
    124     }
    125
    126     public Boolean getBooleanClass() {
    127         return booleanClass;
    128     }
    129
    130     public void setBooleanClass(Boolean booleanClass) {
    131         this.booleanClass = booleanClass;
    132     }
    133
    134     public boolean isBooleanPrimitive() {
    135         return booleanPrimitive;
    136     }
    137
    138     public void setBooleanPrimitive(boolean booleanPrimitive) {
    139         this.booleanPrimitive = booleanPrimitive;
    140     }
    141
    142     public Character getCharClass() {
    143         return charClass;
    144     }
    145
    146     public void setCharClass(Character charClass) {
    147         this.charClass = charClass;
    148     }
    149
    150     public char getCharPrimitive() {
    151         return charPrimitive;
    152     }
    153
    154     public void setCharPrimitive(char charPrimitive) {
    155         this.charPrimitive = charPrimitive;
    156     }
    157
    158     public BigInteger getBigInteger() {
    159         return bigInteger;
    160     }
    161
    162     public void setBigInteger(BigInteger bigInteger) {
    163         this.bigInteger = bigInteger;
    164     }
    165
    166     public Float getFloatClass() {
    167         return floatClass;
    168     }
    169
    170     public void setFloatClass(Float floatClass) {
    171         this.floatClass = floatClass;
    172     }
    173
    174     public float getFloatPrimitive() {
    175         return floatPrimitive;
    176     }
    177
    178     public void setFloatPrimitive(float floatPrimitive) {
    179         this.floatPrimitive = floatPrimitive;
    180     }
    181
    182     public Double getDoubleClass() {
    183         return doubleClass;
    184     }
    185
    186     public void setDoubleClass(Double doubleClass) {
    187         this.doubleClass = doubleClass;
    188     }
    189
    190     public double getDoublePrimitive() {
    191         return doublePrimitive;
    192     }
    193
    194     public void setDoublePrimitive(double doublePrimitive) {
    195         this.doublePrimitive = doublePrimitive;
    196     }
    197
    198     public Date getDate() {
    199         return date;
    200     }
    201
    202     public void setDate(Date date) {
    203         this.date = date;
    204     }
    205 }