Coverage Report - org.seasar.uruma.rcp.configuration.writer.NullConfigurationWriter
 
Classes in this File Line Coverage Branch Coverage Complexity
NullConfigurationWriter
0%
0/6
N/A
0
 
 1  
 /*
 2  
  * Copyright 2004-2008 the Seasar Foundation and the Others.
 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, 
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.uruma.rcp.configuration.writer;
 17  
 
 18  
 import java.io.IOException;
 19  
 import java.io.Writer;
 20  
 
 21  
 import org.seasar.uruma.rcp.configuration.ConfigurationElement;
 22  
 import org.seasar.uruma.rcp.configuration.ConfigurationWriter;
 23  
 
 24  
 /**
 25  
  * 何も処理を行わない {@link ConfigurationWriter} です。<br />
 26  
  * 
 27  
  * @author y-komori
 28  
  */
 29  
 public class NullConfigurationWriter<ELEMENT_TYPE extends ConfigurationElement>
 30  
         extends AbstractConfigurationWriter<ELEMENT_TYPE> {
 31  
     private Class<ELEMENT_TYPE> clazz;
 32  
 
 33  
     /**
 34  
      * {@link NullConfigurationWriter} を構築します。<br />
 35  
      * 
 36  
      * @param clazz
 37  
      *            サポートクラス
 38  
      */
 39  
     public NullConfigurationWriter(final Class<ELEMENT_TYPE> clazz) {
 40  0
         super();
 41  
 
 42  0
         this.clazz = clazz;
 43  0
     }
 44  
 
 45  
     /*
 46  
      * @see org.seasar.uruma.rcp.configuration.writer.AbstractConfigurationWriter#doGetSupportType()
 47  
      */
 48  
     @Override
 49  
     public Class<ELEMENT_TYPE> doGetSupportType() {
 50  0
         return clazz;
 51  
     }
 52  
 
 53  
     /*
 54  
      * @see org.seasar.uruma.rcp.configuration.writer.AbstractConfigurationWriter#doWriteEndTag(org.seasar.uruma.rcp.configuration.ConfigurationElement,
 55  
      *      java.io.Writer, int)
 56  
      */
 57  
     @Override
 58  
     public void doWriteEndTag(final ELEMENT_TYPE element, final Writer writer,
 59  
             final int level) throws IOException {
 60  
         // Do nothing.
 61  0
     }
 62  
 
 63  
     /*
 64  
      * @see org.seasar.uruma.rcp.configuration.writer.AbstractConfigurationWriter#doWriteStartTag(org.seasar.uruma.rcp.configuration.ConfigurationElement,
 65  
      *      java.io.Writer, int)
 66  
      */
 67  
     @Override
 68  
     public void doWriteStartTag(final ELEMENT_TYPE element,
 69  
             final Writer writer, final int level) throws IOException {
 70  
         // Do nothing.
 71  0
     }
 72  
 }