output.startElement(tagName,actual); getTagBody().run(context,output); output.endElement(tagName); } catch (SAXException x) { throw new JellyTagException(x);
/** * Helper method for outputting an end element event * for an element in no namespace. */ public void endElement(String localName) throws SAXException { endElement("", localName, localName); }
/** * Helper method for outputting an end element event for an element in no namespace */ public void endElement(String localName) throws SAXException { endElement("", localName, localName); }
/** * Helper method for outputting an end element event * for an element in no namespace. */ public void endElement(String localName) throws SAXException { endElement("", localName, localName); }
/** * Helper method for outputting an end element event * for an element in no namespace. */ public void endElement(String localName) throws SAXException { endElement("", localName, localName); }
public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(replaceURI(uri), localName, qName); }
public void endElement(String uri, String localName, String qName) throws SAXException { initialize(); super.endElement(uri, localName, qName); }
public void endTest(Test test) { try { output.endElement("test"); } catch (SAXException e) { handleSAXException(e); } }
public void doTag(XMLOutput output) throws JellyTagException { try { output.startElement(uri, localName, qname, attributes); invokeBody(output); output.endElement(uri, localName, qname); } catch (SAXException e) { throw new JellyTagException(e); } }
output.startElement(tagName,actual); getTagBody().run(context,output); output.endElement(tagName); } catch (SAXException x) { throw new JellyTagException(x);
output.startElement(tagName,actual); getTagBody().run(context,output); output.endElement(tagName); } catch (SAXException x) { throw new JellyTagException(x);
public void doTag(XMLOutput output) throws JellyTagException { try { output.startElement(uri, localName, qname, attributes); invokeBody(output); output.endElement(uri, localName, qname); } catch (SAXException e) { throw new JellyTagException(e); } finally { attributes.clear(); context = null; } }
public void doTag(XMLOutput output) throws JellyTagException { try { output.startElement(uri, localName, qname, attributes); invokeBody(output); output.endElement(uri, localName, qname); } catch (SAXException e) { throw new JellyTagException(e); } finally { attributes.clear(); context = null; } }
public void doTag(XMLOutput output) throws JellyTagException { try { output.startElement(uri, localName, qname, attributes); invokeBody(output); output.endElement(uri, localName, qname); } catch (SAXException e) { throw new JellyTagException(e); } finally { attributes.clear(); context = null; } }
public void addError(Test test, Throwable t) { try { output.startElement("error"); output.startElement("message"); output.write(t.getMessage()); output.endElement("message"); output.startElement("stack"); output.write( stackTraceToString(t) ); output.endElement("stack"); output.endElement("error"); } catch (SAXException e) { handleSAXException(e); } }
public void addFailure(Test test, AssertionFailedError t) { try { output.startElement("failure"); output.startElement("message"); output.write(t.getMessage()); output.endElement("message"); output.startElement("stack"); output.write( stackTraceToString(t) ); output.endElement("stack"); output.endElement("failure"); } catch (SAXException e) { handleSAXException(e); } }
public void run(JellyContext context, XMLOutput output) throws JellyTagException { Attributes actual = (allAttributesAreConstant && !EMIT_LOCATION) ? getSaxAttributes() : buildAttributes(context); try { output.startElement(getNsUri(),getLocalName(),getElementName(),actual); getTagBody().run(context,output); output.endElement(getNsUri(),getLocalName(),getElementName()); } catch (SAXException x) { throw new JellyTagException(x); } }
public void run(JellyContext context, XMLOutput output) throws JellyTagException { Attributes actual = (allAttributesAreConstant && !EMIT_LOCATION) ? getSaxAttributes() : buildAttributes(context); try { output.startElement(getNsUri(),getLocalName(),getElementName(),actual); getTagBody().run(context,output); output.endElement(getNsUri(),getLocalName(),getElementName()); } catch (SAXException x) { throw new JellyTagException(x); } }
public void doTag(XMLOutput out) throws JellyTagException { // make sure we get the supporting script in place AdjunctTag a = new AdjunctTag(); a.setContext(getContext()); a.setIncludes("org.kohsuke.stapler.bind"); a.doTag(out); try { String expr; if (javaObject==null) { expr = "null"; } else { Bound h = WebApp.getCurrent().boundObjectTable.bind(javaObject); expr = h.getProxyScript(); } if (varName==null) { // this mode (of writing just the expression) needs to be used with caution because // the adjunct tag above might produce <script> tag. out.write(expr); } else { out.startElement("script"); out.write(varName + "=" + expr + ";"); out.endElement("script"); } } catch (SAXException e) { throw new JellyTagException(e); } } }
public void doTag(XMLOutput out) throws JellyTagException { // make sure we get the supporting script in place ensureDependencies(out); AdjunctTag a = new AdjunctTag(); a.setContext(getContext()); a.setIncludes("org.kohsuke.stapler.bind"); a.doTag(out); try { String expr; if (javaObject==null) { expr = "null"; } else { Bound h = WebApp.getCurrent().boundObjectTable.bind(javaObject); expr = h.getProxyScript(); } if (varName==null) { // this mode (of writing just the expression) needs to be used with caution because // the adjunct tag above might produce <script> tag. out.write(expr); } else { out.startElement("script"); out.write(varName + "=" + expr + ";"); out.endElement("script"); } } catch (SAXException e) { throw new JellyTagException(e); } }