View Javadoc
1   /**
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v1.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
13   */
14  package ch.qos.logback.core.joran.util;
15  
16  import java.nio.charset.Charset;
17  import java.util.ArrayList;
18  import java.util.List;
19  
20  import ch.qos.logback.core.joran.spi.DefaultClass;
21  import ch.qos.logback.core.spi.FilterReply;
22  import ch.qos.logback.core.util.Duration;
23  import ch.qos.logback.core.util.FileSize;
24  
25  public class House {
26      Door mainDoor;
27      int count;
28      Double temperature;
29      boolean open;
30      String name;
31      String camelCase;
32      SwimmingPool pool;
33      Duration duration;
34      FileSize fs;
35      HouseColor houseColor;
36      FilterReply reply;
37  
38      Charset charset;
39  
40      List<String> adjectiveList = new ArrayList<String>();
41      List<Window> windowList = new ArrayList<Window>();
42      List<SwimmingPool> largePoolList = new ArrayList<SwimmingPool>();
43  
44      Orange orange;
45  
46      public String getCamelCase() {
47          return camelCase;
48      }
49  
50      public void setCamelCase(String camelCase) {
51          this.camelCase = camelCase;
52      }
53  
54      public int getCount() {
55          return count;
56      }
57  
58      public void setCount(int c) {
59          this.count = c;
60      }
61  
62      public Double getTemperature() {
63          return temperature;
64      }
65  
66      public void setTemperature(Double temperature) {
67          this.temperature = temperature;
68      }
69  
70      public Door getDoor() {
71          return mainDoor;
72      }
73  
74      public void setDoor(Door door) {
75          this.mainDoor = door;
76      }
77  
78      public String getName() {
79          return name;
80      }
81  
82      public void setName(String name) {
83          this.name = name;
84      }
85  
86      public boolean isOpen() {
87          return open;
88      }
89  
90      public void setOpen(boolean open) {
91          this.open = open;
92      }
93  
94      @DefaultClass(LargeSwimmingPoolImpl.class)
95      public void addLargeSwimmingPool(SwimmingPool pool) {
96          this.pool = pool;
97      }
98  
99      @DefaultClass(SwimmingPoolImpl.class)
100     public void setSwimmingPool(SwimmingPool pool) {
101         this.pool = pool;
102     }
103 
104     public SwimmingPool getSwimmingPool() {
105         return pool;
106     }
107 
108     public void addWindow(Window w) {
109         windowList.add(w);
110     }
111 
112     public void addAdjective(String s) {
113         adjectiveList.add(s);
114     }
115 
116     public Duration getDuration() {
117         return duration;
118     }
119 
120     public void setDuration(Duration duration) {
121         this.duration = duration;
122     }
123 
124     public FileSize getFs() {
125         return fs;
126     }
127 
128     public void setFs(FileSize fs) {
129         this.fs = fs;
130     }
131 
132     public void setHouseColor(HouseColor color) {
133         this.houseColor = color;
134     }
135 
136     public HouseColor getHouseColor() {
137         return houseColor;
138     }
139 
140     public void setFilterReply(FilterReply reply) {
141         this.reply = reply;
142     }
143 
144     public FilterReply getFilterReply() {
145         return reply;
146     }
147 
148     public Charset getCharset() {
149         return charset;
150     }
151 
152     public void setCharset(Charset charset) {
153         this.charset = charset;
154     }
155 
156     public void setOrange(Orange o) {
157         this.orange = o;
158     }
159 }
160 
161 class Door {
162     int handle;
163 }
164 
165 interface SwimmingPool {
166 }
167 
168 class SwimmingPoolImpl implements SwimmingPool {
169     int length;
170     int width;
171     int depth;
172 }
173 
174 class LargeSwimmingPoolImpl implements SwimmingPool {
175     int length;
176     int width;
177     int depth;
178 }
179 
180 enum HouseColor {
181     WHITE, BLUE
182 }