All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.poi.xwpf.usermodel.NumberingWrapper Maven / Gradle / Ivy

The newest version!
package org.apache.poi.xwpf.usermodel;

import java.util.List;

/**
 * This is a utility class so that I can get access to the protected fields
 * within XWPFNumbering.
 */
public class NumberingWrapper {

	private final XWPFNumbering numbering;

	public NumberingWrapper(XWPFNumbering numbering) {
		this.numbering = numbering;
	}

	public List getAbstractNums() {
		return numbering.abstractNums;
	}

	public List getNums() {
		return numbering.nums;
	}

	public XWPFNumbering getNumbering() {
		return numbering;
	}

	public int getAbstractNumsSize() {
		return numbering.abstractNums == null ? 0 : numbering.abstractNums.size();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy