Make getters public for XML beans in XWPFDefault*Style. (#910)

The classes XWPFDefaultRunStyle and XWPFDefaultParagraphStyle only
expose a subset of their possibles attributes. To let users access all
the underlying data, we change the visibility of the XML bean getters
to public.
This commit is contained in:
Jacobo Aragunde Pérez 2025-09-26 10:13:14 +02:00 committed by GitHub
parent b50946307e
commit 7a124135de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -32,7 +32,12 @@ public class XWPFDefaultParagraphStyle {
this.ppr = ppr;
}
protected CTPPrGeneral getPPr() {
/**
* Return the underlying XML bean.
* @return underlying CTPPrGeneral bean.
* @since POI 5.5.0
*/
public CTPPrGeneral getPPr() {
return ppr;
}

View File

@ -36,7 +36,12 @@ public class XWPFDefaultRunStyle {
this.rpr = rpr;
}
protected CTRPr getRPr() {
/**
* Return the underlying XML bean.
* @return underlying CTRPr bean.
* @since POI 5.5.0
*/
public CTRPr getRPr() {
return rpr;
}