@Override public void writeEmptyElement(String localName) throws XMLStreamException { onEmptyElement(); super.writeEmptyElement(localName); }
@Override public void writeStartElement(String localName) throws XMLStreamException { onStartElement(); super.writeStartElement(localName); }
@Override public void writeEndElement() throws XMLStreamException { onEndElement(); super.writeEndElement(); }
public List<Object> apply(Object o, List contentList, int index) { if (o instanceof CTAltChunk) { getAltChunks().add( new LocatedChunk((CTAltChunk)o, contentList, index)); } return null; }
private void onEndElement() throws XMLStreamException { depth--; if (state == SEEN_ELEMENT) { super.writeCharacters("\n"); indent(); } state = stateStack.pop(); }
@Override public void writeComment(String data) throws XMLStreamException { underlying.writeCharacters("\n"); indent(); super.writeComment(data); }
/** * * @param element * @param parent (logical?)parent in the of the element * @param siblings List of the element (this includes the element itself). * This list can't be changed while the visitor is running(!) */ public void apply(T element, Object parent, List<Object> siblings) { apply(element); }
Event e(Method m,Object...params) { final Event e = new Event(); e.m = m; e.args = params; return e; } Method m(String methodName,Class<?>...args) throws XMLStreamException {
LocatedChunk(CTAltChunk altChunk, List contentList, int index) { this.setAltChunk(altChunk); this.contentList = contentList; this.index=index; }
public CompoundTraversalUtilVisitorCallback( List<TraversalUtilVisitor> visitorList) { visitorMap = setupTraversalVistorMap(visitorList); }
/** Clone this JAXB object, using default JAXBContext. */ public Object deepCopy(Object o) { return deepCopy(o, Context.jc); }
public static void serialize(Source source, Result result, boolean omit_xml_declaration, boolean method_xml) throws Docx4JException { serialize( source, result, omit_xml_declaration, method_xml, false); }
@Override public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { onEmptyElement(); super.writeEmptyElement(prefix, localName, namespaceURI); }
@Override public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException { onStartElement(); super.writeStartElement(namespaceURI, localName); }
@Override public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException { onEmptyElement(); super.writeEmptyElement(namespaceURI, localName); }
@Override public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { onStartElement(); super.writeStartElement(prefix, localName, namespaceURI); }