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
021import java.util.Set;
022
023public class DumpProperties {
024        public static final int DEFAULT_MAX_LEVEL=9999;
025
026        public final static DumpProperties DEFAULT = new DumpProperties(DumpProperties.DEFAULT_MAX_LEVEL,null,null,9999,true,true);
027        private final Set show;
028        private final Set hide;
029        private final int maxlevel;
030        private final int keys;
031        private final boolean metainfo;
032        private final boolean showUDFs;
033        
034        
035        
036        
037        public DumpProperties(int maxlevel, Set show, Set hide, int keys,boolean metainfo, boolean showUDFs) {
038                this.show = show;
039                this.hide = hide;
040                this.maxlevel=maxlevel;
041                this.keys=keys;
042                this.metainfo=metainfo;
043                this.showUDFs=showUDFs;
044        }
045        /**
046         * @return the metainfo
047         */
048        public boolean getMetainfo() {
049                return metainfo;
050        }
051        /**
052         * @return the show
053         */
054        public Set getShow() {
055                return show;
056        }
057        /**
058         * @return the hide
059         */
060        public Set getHide() {
061                return hide;
062        }
063        public int getMaxlevel() {
064                return maxlevel;
065        }
066        /**
067         * @return the keys
068         */
069        public int getMaxKeys() {
070                return keys;
071        }
072        /**
073         * @return the showUDFs
074         */
075        public boolean getShowUDFs() {
076                return showUDFs;
077        }
078}