Home | History | Annotate | Download | only in issue311
      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.issues.issue311;
     17 
     18 public class BeanWithEnum {
     19 
     20     private boolean boolField;
     21     private String name;
     22     private BooleanEnum enumField;
     23 
     24     public BeanWithEnum() {
     25         this(true, "", BooleanEnum.UNKNOWN);
     26     }
     27 
     28     public BeanWithEnum(boolean boolField, String name, BooleanEnum enumField) {
     29         this.boolField = boolField;
     30         this.name = name;
     31         this.enumField = enumField;
     32     }
     33 
     34     public boolean isBoolField() {
     35         return boolField;
     36     }
     37 
     38     public String getName() {
     39         return name;
     40     }
     41 
     42     public BooleanEnum getEnumField() {
     43         return enumField;
     44     }
     45 
     46     public void setBoolField(boolean boolField) {
     47         this.boolField = boolField;
     48     }
     49 
     50     public void setName(String name) {
     51         this.name = name;
     52     }
     53 
     54     public void setEnumField(BooleanEnum enumField) {
     55         this.enumField = enumField;
     56     }
     57 }
     58