Coverage Report - org.ini4j.addon.FancyIniParser
 
Classes in this File Line Coverage Branch Coverage Complexity
FancyIniParser
100%
31/31
N/A
0
 
 1  
 /*
 2  
  * Copyright 2005,2009 Ivan SZKIBA
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.ini4j.addon;
 17  
 
 18  
 import org.ini4j.Config;
 19  
 import org.ini4j.IniParser;
 20  
 
 21  
 @Deprecated public class FancyIniParser extends IniParser
 22  
 {
 23  
     public FancyIniParser()
 24  9
     {
 25  9
         Config cfg = getConfig().clone();
 26  
 
 27  9
         cfg.setEmptyOption(true);
 28  9
         cfg.setGlobalSection(true);
 29  9
         cfg.setUnnamedSection(true);
 30  9
         cfg.setGlobalSectionName("?");
 31  9
         cfg.setInclude(true);
 32  9
         super.setConfig(cfg);
 33  9
     }
 34  
 
 35  
     @Deprecated public synchronized void setAllowEmptyOption(boolean flag)
 36  
     {
 37  1
         getConfig().setEmptyOption(flag);
 38  1
     }
 39  
 
 40  
     @Deprecated public synchronized void setAllowInclude(boolean flag)
 41  
     {
 42  1
         getConfig().setInclude(flag);
 43  1
     }
 44  
 
 45  
     @Deprecated public synchronized void setAllowMissingSection(boolean flag)
 46  
     {
 47  1
         getConfig().setGlobalSection(flag);
 48  1
     }
 49  
 
 50  
     @Deprecated public synchronized void setAllowOptionCaseConversion(boolean flag)
 51  
     {
 52  1
         getConfig().setLowerCaseOption(flag);
 53  1
     }
 54  
 
 55  
     @Deprecated public synchronized void setAllowSectionCaseConversion(boolean flag)
 56  
     {
 57  1
         getConfig().setLowerCaseSection(flag);
 58  1
     }
 59  
 
 60  
     @Deprecated public synchronized void setAllowUnnamedSection(boolean flag)
 61  
     {
 62  1
         getConfig().setUnnamedSection(flag);
 63  1
     }
 64  
 
 65  
     @Deprecated @Override public void setConfig(Config value)
 66  
     {
 67  
         assert true;
 68  5
     }
 69  
 
 70  
     @Deprecated public synchronized boolean isAllowInclude()
 71  
     {
 72  2
         return getConfig().isInclude();
 73  
     }
 74  
 
 75  
     @Deprecated public synchronized String getMissingSectionName()
 76  
     {
 77  1
         return getConfig().getGlobalSectionName();
 78  
     }
 79  
 
 80  
     @Deprecated public synchronized void setMissingSectionName(String name)
 81  
     {
 82  1
         getConfig().setGlobalSectionName(name);
 83  1
     }
 84  
 
 85  
     @Deprecated public synchronized boolean isAllowEmptyOption()
 86  
     {
 87  1
         return getConfig().isEmptyOption();
 88  
     }
 89  
 
 90  
     @Deprecated public synchronized boolean isAllowMissingSection()
 91  
     {
 92  1
         return getConfig().isGlobalSection();
 93  
     }
 94  
 
 95  
     @Deprecated public synchronized boolean isAllowOptionCaseConversion()
 96  
     {
 97  1
         return getConfig().isLowerCaseOption();
 98  
     }
 99  
 
 100  
     @Deprecated public synchronized boolean isAllowSectionCaseConversion()
 101  
     {
 102  1
         return getConfig().isLowerCaseSection();
 103  
     }
 104  
 
 105  
     @Deprecated public synchronized boolean isAllowUnnamedSection()
 106  
     {
 107  1
         return getConfig().isUnnamedSection();
 108  
     }
 109  
 }