public List<Object> apply(Object o, List contentList, int index) { if (o instanceof CTAltChunk) { getAltChunks().add( new LocatedChunk((CTAltChunk)o, contentList, index)); } return null; }
@Override public void walkJAXBElements(Object parent) { List children = getChildren(parent); if (children != null) { int index = 0; for (Object o : children) { o = XmlUtils.unwrap(o); this.apply(o, children, index); if (this.shouldTraverse(o)) { walkJAXBElements(o); } index++; } } }
AltChunkFinder bf = new AltChunkFinder(); new TraversalUtil(contentList, bf); for (LocatedChunk locatedChunk : bf.getAltChunks()) {
AltChunkFinder bf = new AltChunkFinder(); new TraversalUtil(contentList, bf); for (LocatedChunk locatedChunk : bf.getAltChunks()) {
List<Object> contentList = ((ContentAccessor) mainDocumentPart).getContent(); AltChunkFinder bf = new AltChunkFinder(); new TraversalUtil(contentList, bf); for (AltChunkFinder.LocatedChunk locatedChunk : bf.getAltChunks()) { CTAltChunk altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart part
@Override public void walkJAXBElements(Object parent) { List children = getChildren(parent); if (children != null) { int index = 0; for (Object o : children) { o = XmlUtils.unwrap(o); this.apply(o, children, index); if (this.shouldTraverse(o)) { walkJAXBElements(o); } index++; } } }
public List<Object> apply(Object o, List contentList, int index) { if (o instanceof CTAltChunk) { getAltChunks().add( new LocatedChunk((CTAltChunk)o, contentList, index)); } return null; }
List<Object> contentList = ((ContentAccessor) mainDocumentPart).getContent(); AltChunkFinder bf = new AltChunkFinder(); new TraversalUtil(contentList, bf); for (AltChunkFinder.LocatedChunk locatedChunk : bf.getAltChunks()) { CTAltChunk altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart part