org.docx4j.model.fields.ComplexFieldLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-core Show documentation
Show all versions of docx4j-core Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.docx4j.model.fields;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import org.docx4j.TraversalUtil.CallbackImpl;
import org.docx4j.wml.FldChar;
import org.docx4j.wml.P;
import org.docx4j.wml.STFldCharType;
import org.jvnet.jaxb2_commons.ppp.Child;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ComplexFieldLocator extends CallbackImpl {
private static Logger log = LoggerFactory.getLogger(ComplexFieldLocator.class);
/**
* A list of paragraphs containing field begins.
*
* If the paragraph contains 2 fields or nested fields,
* it will still be listed just once
*/
List starts = new ArrayList
();
public List
getStarts() {
return starts;
}
// P currentP;
int depth=0;
@Override
public List