From a glance at that class (have you checked out the source code?):
- Code: Select all
/**
* Gets the value of the cnfStyleOrDivIdOrGridBefore 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 cnfStyleOrDivIdOrGridBefore property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCnfStyleOrDivIdOrGridBefore().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTTrPrBase.GridAfter }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
* {@link JAXBElement }{@code <}{@link Jc }{@code >}
* {@link JAXBElement }{@code <}{@link CTCnf }{@code >}
* {@link JAXBElement }{@code <}{@link CTTrPrBase.DivId }{@code >}
* {@link JAXBElement }{@code <}{@link CTTrPrBase.GridBefore }{@code >}
* {@link JAXBElement }{@code <}{@link CTHeight }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
* {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
* {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
* {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
*
*
*/
public List<JAXBElement<?>> getCnfStyleOrDivIdOrGridBefore() {
if (cnfStyleOrDivIdOrGridBefore == null) {
cnfStyleOrDivIdOrGridBefore = new ArrayList<JAXBElement<?>>();
}
return this.cnfStyleOrDivIdOrGridBefore;
}
you can see it is inited automatically, and you can guess the element you are after is CTHeight
You can confirm this by looking at wml.xsd, which says trHeight is of type "CT_Height".