public void objectData(Object object) throws SAXException { initialize(); super.objectData(object); }
/** Evaluates the body of a tag */ public void run(JellyContext context, XMLOutput output) throws JellyTagException { Object result = expression.evaluate(context); if ( result != null ) { try { output.objectData(result); } catch (SAXException e) { throw new JellyTagException("Could not write to XMLOutput",e); } } } }
/** Evaluates the body of a tag */ public void run(JellyContext context, XMLOutput output) throws JellyTagException { Object result = expression.evaluate(context); if ( result != null ) { try { output.objectData(result); } catch (SAXException e) { throw new JellyTagException("Could not write to XMLOutput",e); } } } }
/** Evaluates the body of a tag */ public void run(JellyContext context, XMLOutput output) throws JellyTagException { Object result = expression.evaluate(context); if ( result != null ) { try { output.objectData(result); } catch (SAXException e) { throw new JellyTagException("Could not write to XMLOutput",e); } } } }
/** Evaluates the body of a tag */ public void run(JellyContext context, XMLOutput output) throws JellyTagException { Object result = expression.evaluate(context); if ( result != null ) { try { output.objectData(result); } catch (SAXException e) { throw new JellyTagException("Could not write to XMLOutput",e); } } } }
/** Pass data through the pipeline. * By default, this call is ignored. * Subclasses are invited to use this as a way for children tags to * pass data to their parent. * * @param object the data to pass * @exception SAXException The application may raise an exception. */ public void objectData(Object object) throws SAXException { if(contentHandler instanceof XMLOutput) ((XMLOutput) contentHandler).objectData(object); else { if(object!=null) { String output=object.toString(); write(output); } else { // we could have a "configurable null-toString"... write("null"); } } }
/** Pass data through the pipeline. * By default, this call is ignored. * Subclasses are invited to use this as a way for children tags to * pass data to their parent. * * @param object the data to pass * @exception SAXException The application may raise an exception. */ public void objectData(Object object) throws SAXException { if(contentHandler instanceof XMLOutput) ((XMLOutput) contentHandler).objectData(object); else { if(object!=null) { String output=object.toString(); write(output); } else { // we could have a "configurable null-toString"... write("null"); } } }
/** Pass data through the pipline. * By default, this call is ignored. * Subclasses are invited to use this as a way for children tags to * pass data to their parent. * * @param object the data to pass * @exception SAXException The application may raise an exception. */ public void objectData(Object object) throws SAXException { if(contentHandler instanceof XMLOutput) ((XMLOutput) contentHandler).objectData(object); else { if(object!=null) { String output=object.toString(); write(output); } else { // we could have a "configurable null-toString"... write("null"); } } }
/** Pass data through the pipeline. * By default, this call is ignored. * Subclasses are invited to use this as a way for children tags to * pass data to their parent. * * @param object the data to pass * @exception SAXException The application may raise an exception. */ public void objectData(Object object) throws SAXException { if(contentHandler instanceof XMLOutput) ((XMLOutput) contentHandler).objectData(object); else { if(object!=null) { String output=object.toString(); write(output); } else { // we could have a "configurable null-toString"... write("null"); } } }