001/** 002 * Copyright 2010-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.common.util.log4j.model; 017 018import javax.xml.bind.annotation.XmlAttribute; 019 020/** 021 * @deprecated 022 */ 023@Deprecated 024public class Level { 025 026 public static final Class<org.apache.log4j.Level> DEFAULT_JAVA_CLASS = org.apache.log4j.Level.class; 027 028 Class<?> javaClass = DEFAULT_JAVA_CLASS; 029 Value value; 030 031 public Level(Level level) { 032 super(); 033 this.javaClass = level.getJavaClass(); 034 this.value = level.getValue(); 035 } 036 037 public Level() { 038 this((Value) null); 039 } 040 041 public Level(Value value) { 042 super(); 043 this.value = value; 044 } 045 046 @XmlAttribute(name = "class") 047 public Class<?> getJavaClass() { 048 return javaClass; 049 } 050 051 @XmlAttribute 052 public Value getValue() { 053 return value; 054 } 055 056 public void setJavaClass(Class<?> javaClass) { 057 this.javaClass = javaClass; 058 } 059 060 public void setValue(Value value) { 061 this.value = value; 062 } 063 064}