org.docx4j.model.fields.ComplexFieldLocator Maven / Gradle / Ivy
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