• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2008, SnakeYAML
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14 package org.yaml.snakeyaml.issues.issue311;
15 
16 public class BeanWithEnum {
17 
18   private boolean boolField;
19   private String name;
20   private BooleanEnum enumField;
21 
BeanWithEnum()22   public BeanWithEnum() {
23     this(true, "", BooleanEnum.UNKNOWN);
24   }
25 
BeanWithEnum(boolean boolField, String name, BooleanEnum enumField)26   public BeanWithEnum(boolean boolField, String name, BooleanEnum enumField) {
27     this.boolField = boolField;
28     this.name = name;
29     this.enumField = enumField;
30   }
31 
isBoolField()32   public boolean isBoolField() {
33     return boolField;
34   }
35 
getName()36   public String getName() {
37     return name;
38   }
39 
getEnumField()40   public BooleanEnum getEnumField() {
41     return enumField;
42   }
43 
setBoolField(boolean boolField)44   public void setBoolField(boolean boolField) {
45     this.boolField = boolField;
46   }
47 
setName(String name)48   public void setName(String name) {
49     this.name = name;
50   }
51 
setEnumField(BooleanEnum enumField)52   public void setEnumField(BooleanEnum enumField) {
53     this.enumField = enumField;
54   }
55 }
56