I'd like to set the "showingPlcHdr" property for an SdtPr object. Unfortunatelly it is represented by a BooleanDefaultTrue object, which from my understanding also stands for the "temporary" property (s.b.). How can I ensure that the "showingPlcHdr" property is set and not the "temporary" one?
This is the corresponding part from SdtPr.java:
Using java Syntax Highlighting
/**
* <element name="lock" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Lock" minOccurs="0"/>
* <element name="placeholder" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Placeholder" minOccurs="0"/>
* <element name="showingPlcHdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
* <element name="dataBinding" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_DataBinding" minOccurs="0"/>
* <element name="temporary" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
* <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}id" minOccurs="0"/>
* <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tag" minOccurs="0"/>
**/
/**
* Gets the value of the rPrOrAliasOrLock property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the rPrOrAliasOrLock property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRPrOrAliasOrLock().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTSdtDate }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtComboBox }{@code >}
* {@link JAXBElement }{@code <}{@link CTDataBinding }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDocPart }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.RichText }{@code >}
* {@link JAXBElement }{@code <}{@link RPr }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link CTLock }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Group }{@code >}
* {@link Id }
* {@link JAXBElement }{@code <}{@link SdtPr.Citation }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Picture }{@code >}
* {@link JAXBElement }{@code <}{@link CTPlaceholder }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtText }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Alias }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDocPart }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Equation }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDropDownList }{@code >}
* {@link Tag }
* {@link JAXBElement }{@code <}{@link SdtPr.Bibliography }{@code >}
*
*
*/
* <element name="lock" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Lock" minOccurs="0"/>
* <element name="placeholder" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Placeholder" minOccurs="0"/>
* <element name="showingPlcHdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
* <element name="dataBinding" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_DataBinding" minOccurs="0"/>
* <element name="temporary" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
* <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}id" minOccurs="0"/>
* <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tag" minOccurs="0"/>
**/
/**
* Gets the value of the rPrOrAliasOrLock property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the rPrOrAliasOrLock property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRPrOrAliasOrLock().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTSdtDate }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtComboBox }{@code >}
* {@link JAXBElement }{@code <}{@link CTDataBinding }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDocPart }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.RichText }{@code >}
* {@link JAXBElement }{@code <}{@link RPr }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link CTLock }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Group }{@code >}
* {@link Id }
* {@link JAXBElement }{@code <}{@link SdtPr.Citation }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Picture }{@code >}
* {@link JAXBElement }{@code <}{@link CTPlaceholder }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtText }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Alias }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDocPart }{@code >}
* {@link JAXBElement }{@code <}{@link SdtPr.Equation }{@code >}
* {@link JAXBElement }{@code <}{@link CTSdtDropDownList }{@code >}
* {@link Tag }
* {@link JAXBElement }{@code <}{@link SdtPr.Bibliography }{@code >}
*
*
*/
Parsed in 0.015 seconds, using GeSHi 1.0.8.4
Richard