001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.core.joran.util;
015
016import java.nio.charset.Charset;
017import java.util.ArrayList;
018import java.util.List;
019
020import ch.qos.logback.core.joran.spi.DefaultClass;
021import ch.qos.logback.core.spi.FilterReply;
022import ch.qos.logback.core.util.Duration;
023import ch.qos.logback.core.util.FileSize;
024
025public class House {
026    Door mainDoor;
027    int count;
028    Double temperature;
029    boolean open;
030    String name;
031    String camelCase;
032    SwimmingPool pool;
033    Duration duration;
034    FileSize fs;
035    HouseColor houseColor;
036    FilterReply reply;
037
038    Charset charset;
039
040    List<String> adjectiveList = new ArrayList<String>();
041    List<Window> windowList = new ArrayList<Window>();
042    List<SwimmingPool> largePoolList = new ArrayList<SwimmingPool>();
043
044    Orange orange;
045
046    public String getCamelCase() {
047        return camelCase;
048    }
049
050    public void setCamelCase(String camelCase) {
051        this.camelCase = camelCase;
052    }
053
054    public int getCount() {
055        return count;
056    }
057
058    public void setCount(int c) {
059        this.count = c;
060    }
061
062    public Double getTemperature() {
063        return temperature;
064    }
065
066    public void setTemperature(Double temperature) {
067        this.temperature = temperature;
068    }
069
070    public Door getDoor() {
071        return mainDoor;
072    }
073
074    public void setDoor(Door door) {
075        this.mainDoor = door;
076    }
077
078    public String getName() {
079        return name;
080    }
081
082    public void setName(String name) {
083        this.name = name;
084    }
085
086    public boolean isOpen() {
087        return open;
088    }
089
090    public void setOpen(boolean open) {
091        this.open = open;
092    }
093
094    @DefaultClass(LargeSwimmingPoolImpl.class)
095    public void addLargeSwimmingPool(SwimmingPool pool) {
096        this.pool = pool;
097    }
098
099    @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
161class Door {
162    int handle;
163}
164
165interface SwimmingPool {
166}
167
168class SwimmingPoolImpl implements SwimmingPool {
169    int length;
170    int width;
171    int depth;
172}
173
174class LargeSwimmingPoolImpl implements SwimmingPool {
175    int length;
176    int width;
177    int depth;
178}
179
180enum HouseColor {
181    WHITE, BLUE
182}