protected P createNumberedP(String style, int numId, int ilvl) {
P p = wmlObjectFactory.createP();
// Create object for pPr
PPr ppr = wmlObjectFactory.createPPr();
p.setPPr(ppr);
if (numId>-1) {
// Create object for numPr
PPrBase.NumPr pprbasenumpr = wmlObjectFactory.createPPrBaseNumPr();
ppr.setNumPr(pprbasenumpr);
// Create object for ilvl
PPrBase.NumPr.Ilvl pprbasenumprilvl = wmlObjectFactory.createPPrBaseNumPrIlvl();
pprbasenumpr.setIlvl(pprbasenumprilvl);
pprbasenumprilvl.setVal( BigInteger.valueOf( ilvl) );
// Create object for numId
PPrBase.NumPr.NumId pprbasenumprnumid = wmlObjectFactory.createPPrBaseNumPrNumId();
pprbasenumpr.setNumId(pprbasenumprnumid);
pprbasenumprnumid.setVal( BigInteger.valueOf( numId) );
}
// Create object for pStyle
PPrBase.PStyle pprbasepstyle = wmlObjectFactory.createPPrBasePStyle();
ppr.setPStyle(pprbasepstyle);
pprbasepstyle.setVal( style);
// Create object for r
R r = wmlObjectFactory.createR();
p.getContent().add( r);
// Create object for t (wrapped in JAXBElement)