1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 20 21 import org.apache.cocoon.components.elementprocessor.types.BooleanConverter; 22 import org.apache.cocoon.components.elementprocessor.types.BooleanResult; 23 24 import java.io.IOException ; 25 26 34 public class EP_Draft extends BaseElementProcessor { 35 private static final String _value_attribute = "value"; 36 private BooleanResult _value; 37 38 41 public EP_Draft() { 42 super(null); 43 _value = null; 44 } 45 46 51 public boolean getValue() throws IOException { 52 if (_value == null) { 53 _value = BooleanConverter.extractBoolean(getValue(_value_attribute)); 54 } 55 return _value.booleanValue(); 56 } 57 58 62 public void endProcessing() throws IOException { 63 this.getSheet().setDraft(this.getValue()); 64 } 65 } | Popular Tags |