001/** 002 * Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2015, QOS.ch. All rights 003 * reserved. 004 * 005 * This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License 006 * v1.0 as published by the Eclipse Foundation 007 * 008 * or (per the licensee's choosing) 009 * 010 * under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. 011 */ 012package ch.qos.logback.core.joran.action; 013 014import ch.qos.logback.core.joran.util.PropertySetter; 015import ch.qos.logback.core.util.AggregationType; 016 017/** 018 * Lump together several fields for use by {@link ch.qos.logback.core.model.processor.ImplicitModelHandler ImplicitModelHandler}. 019 * 020 * @author Ceki 021 */ 022public class ImplicitModelDataForComplexProperty extends ImplicitModelData { 023 024 private Object nestedComplexProperty; 025 private Class<?> expectedPropertyType; 026 027 public ImplicitModelDataForComplexProperty(PropertySetter parentBean, AggregationType aggregationType, 028 String propertyName) { 029 super(parentBean, aggregationType, propertyName); 030 } 031 032 public Object getNestedComplexProperty() { 033 return nestedComplexProperty; 034 } 035 036 public Class<?> getExpectedPropertyType() { 037 return expectedPropertyType; 038 } 039 040 public void setExpectedPropertyType(Class<?> expectedPropertyType) { 041 this.expectedPropertyType = expectedPropertyType; 042 } 043 044 public void setNestedComplexProperty(Object nestedComplexProperty) { 045 this.nestedComplexProperty = nestedComplexProperty; 046 } 047 048}