001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.dump; 020 021 022/** 023 * this class is to hold all information to a dumpwriter together in a single class, Dumpwriter, name and if it is a default. 024 */ 025public class DumpWriterEntry { 026 private String name; 027 private DumpWriter writer; 028 private int defaultType; 029 030 public DumpWriterEntry(int defaultType, String name, DumpWriter writer) { 031 //print.err(name+":"+defaultType); 032 this.defaultType = defaultType; 033 this.name = name; 034 this.writer = writer; 035 } 036 037 /** 038 * @return the def 039 */ 040 public int getDefaultType() { 041 return defaultType; 042 } 043 044 /** 045 * @param def the def to set 046 */ 047 public void setDefaultType(int defaultType) { 048 this.defaultType = defaultType; 049 } 050 051 /** 052 * @return the name 053 */ 054 public String getName() { 055 return name; 056 } 057 058 /** 059 * @return the writer 060 */ 061 public DumpWriter getWriter() { 062 return writer; 063 } 064 065}