title: Why STOnOff Enums are removed in Apache 5.2.2 ? How to set X_0 & X_1 values?
body: <p>I was using STOnOff.X_0 Enum to set value as 0(i.e false) for some elements in Apache POI 3.14 when constructing docx file. But now currently in latest version 5.2.2, I could this class has been changed &amp; also new class named as STOnOff1 is being introduced with On &amp; Off enums. Based on below stackoverflow thread I could see that it is suggested to use true or false.</p>
  <p><a href="https://stackoverflow.com/questions/67027275/problems-with-symbols-apostrophe-parenthesis-when-writing-rtl-language-with-a">Similar Stackoverflow thread</a></p>
  <p>Why is STOnOff class removed &amp; an another class like STOnOff1 is introduced without having STOnOff1.X_0 &amp; STOnOff1.X_1 enums but just STOnOff1.OFF &amp; STOnOff1.ON ? Can I use STTrueFalse.True/STTrueFalse.False in place of just boolean true/false ? Any detailed clarification/solution reg these changes will be really helpful.</p>
  <p><strong>Concrete Examples:</strong></p>
  <p>1)For setEqualWidth(STOnOff value) of Section's column Layout, we could see that previously in POI 3.14 we need to set STOnOff value as STOnOff.X_1, etc.. But in Apache POI 5.2.2 it is now accepting any Object value, <strong>so can we set STTrueFalse.True/boolean true (or) false instead of STOnOff.X_1 in setEqualWidth() API now ?</strong></p>
  <p><strong>Also could see that any CT API's like setEqualWidth(STOnOff value) which previously accepted STOnOff.Enum values had now changed to accept Object param for which can we pass STTrueFalse.True/STTrueFalse.False instead of plain boolean true(or) false ?</strong></p>
  <pre><code>import java.math.BigDecimal;
  import java.math.BigInteger;
  import java.util.List;
  
  import org.apache.poi.xwpf.usermodel.XWPFDocument;
  import org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STOnOff;
  import org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse;
  import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPageMar;
  import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr;
  
  public class STOnOffValuesTesting {
  
      public static void main(String[] args) {
          
          try {
          byte[] docbytes = FileUtil.read(&quot;anysimpleDocxFile.docx&quot;); //No i18n
          InputStream documentStream = GeneralUtils.getStreamFromArray( docbytes );
          XWPFDocument document = new XWPFDocument( documentStream );
          List&lt;CTSectPr&gt; documentSections = document.docSections;
          int length = documentSections.size();
  
          for(int i=0; i &lt;length; i++){
              CTSectPr sectPr = documentSections.get(i);
  
              //In Apache POI 3.14
              sectPr.getCols().setEqualWidth(STOnOff.X_1);
              
  
              //But in Apache POI 5.2.2
              sectPr.getCols().setEqualWidth(true);
              sectPr.getCols().setEqualWidth(STTrueFalse.TRUE); //Is this correct ?
              }
          }catch(Exception e) {
              System.out.println(e)
          }
      }
  }```
  </code></pre>