Page 1 of 1

TextDirection enum class missing

PostPosted: Fri Sep 26, 2014 7:00 am
by AndreasN
Hi,

I searched for a enum class to set the textDirection value and did not found any JAXB representation as undefined.

Is there a helper class for that or planned?

TextDirection textdirection = wmlObjectFactory.createTextDirection();
textdirection.setVal( "btLr");

Kind regards,
Andreas

Code: Select all

<w:textDirection w:val="btLr"/>

Java class for CTTextDirection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_TextDirection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="lrTb"/>
             <enumeration value="tbRl"/>
             <enumeration value="btLr"/>
             <enumeration value="lrTbV"/>
             <enumeration value="tbRlV"/>
             <enumeration value="tbLrV"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
</complexType>

Re: TextDirection enum class missing

PostPosted: Fri Sep 26, 2014 7:33 am
by jason
You're right.

In many cases JAXB's XJC did generate enums; not sure without looking into it why it didn't in this case.

Happy to accept a contrib adding a suitable enum. Would be a change for v3.3 if it changes the API.

Re: TextDirection enum class missing

PostPosted: Tue Mar 07, 2017 3:45 pm
by balmerhevi
Check this one to know more about....Java Enum

Balmer