1   /**
2    * Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2015, QOS.ch. All rights
3    * reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License
6    * v1.0 as published by the Eclipse Foundation
7    *
8    * or (per the licensee's choosing)
9    *
10   * under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
11   */
12  package ch.qos.logback.core.joran.action;
13  
14  import ch.qos.logback.core.joran.util.PropertySetter;
15  import ch.qos.logback.core.util.AggregationType;
16  
17  /**
18   * Lump together several fields for use by {@link ch.qos.logback.core.model.processor.ImplicitModelHandler ImplicitModelHandler}.
19   *
20   * @author Ceki
21   */
22  public class ImplicitModelDataForComplexProperty extends ImplicitModelData {
23  
24      private Object nestedComplexProperty;
25      private Class<?> expectedPropertyType;
26  
27      public ImplicitModelDataForComplexProperty(PropertySetter parentBean, AggregationType aggregationType,
28              String propertyName) {
29          super(parentBean, aggregationType, propertyName);
30      }
31  
32      public Object getNestedComplexProperty() {
33          return nestedComplexProperty;
34      }
35  
36      public Class<?> getExpectedPropertyType() {
37          return expectedPropertyType;
38      }
39  
40      public void setExpectedPropertyType(Class<?> expectedPropertyType) {
41          this.expectedPropertyType = expectedPropertyType;
42      }
43  
44      public void setNestedComplexProperty(Object nestedComplexProperty) {
45          this.nestedComplexProperty = nestedComplexProperty;
46      }
47  
48  }