public DOMOutput(Node node, AssociationMap assoc) { super(new SAX2DOMEx(node)); this.assoc = assoc; assert assoc!=null; }
public void characters(char[] ch, int start, int length) { characters(new String(ch, start, length)); }
String uri = unprocessedNamespaces.get(i + 1); namespace(element, prefix, uri);
@Override public void setDocumentLocator(Locator locator) { super.setDocumentLocator(locator); this.locator = locator; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( JAXWSBindingsConstants.JAXWS_BINDINGS.getNamespaceURI().equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document) { outerMostBindings.add(e); // remember this value } } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
@Override public void endStartTag() throws SAXException { super.endStartTag(); Object op = nsContext.getCurrent().getOuterPeer(); if(op!=null) assoc.addOuter( getBuilder().getCurrentElement(), op ); Object ip = nsContext.getCurrent().getInnerPeer(); if(ip!=null) assoc.addInner( getBuilder().getCurrentElement(), ip ); } }
public DomAndLocation getElement(ResultImpl r) { return new DomAndLocation( ((Document)r.s2d.getDOM()).getDocumentElement(), r.location ); }
public void setDocumentLocator(Locator locator) { this.locator = locator; super.setDocumentLocator(locator); }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( JAXWSBindingsConstants.JAXWS_BINDINGS.getNamespaceURI().equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document) { outerMostBindings.add(e); // remember this value } } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
@Override public void endStartTag() throws SAXException { super.endStartTag(); Object op = nsContext.getCurrent().getOuterPeer(); if(op!=null) assoc.addOuter( getBuilder().getCurrentElement(), op ); Object ip = nsContext.getCurrent().getInnerPeer(); if(ip!=null) assoc.addInner( getBuilder().getCurrentElement(), ip ); } }
public DomAndLocation getElement(ResultImpl r) { return new DomAndLocation( ((Document)r.s2d.getDOM()).getDocumentElement(), r.location ); }
public void marshal(Marshaller _m, T t, Node output) throws JAXBException { MarshallerImpl m = (MarshallerImpl)_m; m.write(tagName,bi,t,new SAXOutput(new SAX2DOMEx(output)),new DomPostInitAction(output,m.serializer)); }
public void setDocumentLocator(Locator locator) { this.locator = locator; super.setDocumentLocator(locator); }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); }
public void characters(char[] ch, int start, int length) { characters(new String(ch, start, length)); }
String uri = unprocessedNamespaces.get(i + 1); namespace(element, prefix, uri);
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException { super.enterElement(uri, local, qname, atts); if( owner==null ) owner = ((SAX2DOMEx)handler).getCurrentElement(); }