public final class WMLHelper {
- public static boolean STOnOffToBoolean (STOnOff.Enum value) {
+ public static boolean convertSTOnOffToBoolean (STOnOff.Enum value) {
if (value == STOnOff.TRUE || value == STOnOff.ON || value == STOnOff.X_1) {
return true;
}
return false;
}
- public static STOnOff.Enum BooleanToSTOnOff (boolean value) {
+ public static STOnOff.Enum convertBooleanToSTOnOff (boolean value) {
return (value ? STOnOff.TRUE : STOnOff.FALSE);
}
}
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtCell;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.STOnOff;
\r
/**\r
CTTrPr trpr = getTrPr();
if (trpr.sizeOfCantSplitArray() > 0) {
CTOnOff onoff = trpr.getCantSplitArray(0);
- isCant = (onoff.isSetVal() ? WMLHelper.STOnOffToBoolean(onoff.getVal()) : true);
+ isCant = (onoff.isSetVal() ? WMLHelper.convertSTOnOffToBoolean(onoff.getVal()) : true);
}
}
return isCant;
public void setCantSplitRow(boolean split) {\r
CTTrPr trpr = getTrPr();\r
CTOnOff onoff = (trpr.sizeOfCantSplitArray() > 0 ? trpr.getCantSplitArray(0) : trpr.addNewCantSplit());\r
- onoff.setVal(WMLHelper.BooleanToSTOnOff(split));\r
+ onoff.setVal(WMLHelper.convertBooleanToSTOnOff(split));\r
}\r
\r
/**\r
CTTrPr trpr = getTrPr();
if (trpr.sizeOfTblHeaderArray() > 0) {
CTOnOff rpt = trpr.getTblHeaderArray(0);
- repeat = (rpt.isSetVal() ? WMLHelper.STOnOffToBoolean(rpt.getVal()) : true);
+ repeat = (rpt.isSetVal() ? WMLHelper.convertSTOnOffToBoolean(rpt.getVal()) : true);
}
}
return repeat;
public void setRepeatHeader(boolean repeat) {\r
CTTrPr trpr = getTrPr();\r
CTOnOff onoff = (trpr.sizeOfTblHeaderArray() > 0 ? trpr.getTblHeaderArray(0) : trpr.addNewTblHeader());\r
- onoff.setVal(WMLHelper.BooleanToSTOnOff(repeat));\r
+ onoff.setVal(WMLHelper.convertBooleanToSTOnOff(repeat));\r
}\r
}\r