public void doTag(XMLOutput output) throws BreakException { boolean broken = false; if (test == null || test.evaluateAsBoolean(context)) { broken = true; } if ( var != null ) { context.setVariable( this.var, String.valueOf(broken)); } if ( broken ) { throw new BreakException(); } }
public void doTag(XMLOutput output) throws BreakException { boolean broken = false; if (test == null || test.evaluateAsBoolean(context)) { broken = true; } if ( var != null ) { context.setVariable( this.var, String.valueOf(broken)); } if ( broken ) { throw new BreakException(); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { if (test.evaluateAsBoolean(context)) { invokeBody(output); } } else { throw new MissingAttributeException( "test" ); } }
public void doTag(XMLOutput output) throws BreakException { boolean broken = false; if (test == null || test.evaluateAsBoolean(context)) { broken = true; } if ( var != null ) { context.setVariable( this.var, String.valueOf(broken)); } if ( broken ) { throw new BreakException(); } }
public void doTag(XMLOutput output) throws BreakException { boolean broken = false; if (test == null || test.evaluateAsBoolean(context)) { broken = true; } if ( var != null ) { context.setVariable( this.var, String.valueOf(broken)); } if ( broken ) { throw new BreakException(); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { if (test.evaluateAsBoolean(context)) { invokeBody(output); } } else { throw new MissingAttributeException( "test" ); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { if (test.evaluateAsBoolean(context)) { invokeBody(output); } } else { throw new MissingAttributeException( "test" ); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { if (test.evaluateAsBoolean(context)) { invokeBody(output); } } else { throw new MissingAttributeException( "test" ); } }
/** * Tag interface * @param output destination for xml output * @throws MissingAttributeException when the test attribute is missing * @throws Exception for anything else */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { try { while (test.evaluateAsBoolean(getContext())) { if (log.isDebugEnabled()) { log.debug("evaluated to true! gonna keep on chuggin!"); } invokeBody(output); } } catch (BreakException e) { if (log.isDebugEnabled()) { log.debug("loop terminated by break: " + e, e); } } } else { throw new MissingAttributeException("test"); } }
/** * Tag interface * @param output destination for xml output * @throws MissingAttributeException when the test attribute is missing * @throws Exception for anything else */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { try { while (test.evaluateAsBoolean(getContext())) { if (log.isDebugEnabled()) { log.debug("evaluated to true! gonna keep on chuggin!"); } invokeBody(output); } } catch (BreakException e) { if (log.isDebugEnabled()) { log.debug("loop terminated by break: " + e, e); } } } else { throw new MissingAttributeException("test"); } }
/** * Tag interface * @param output destination for xml output * @throws MissingAttributeException when the test attribute is missing * @throws Exception for anything else */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { try { while (test.evaluateAsBoolean(getContext())) { if (log.isDebugEnabled()) { log.debug("evaluated to true! gonna keep on chuggin!"); } invokeBody(output); } } catch (BreakException e) { if (log.isDebugEnabled()) { log.debug("loop terminated by break: " + e, e); } } } else { throw new MissingAttributeException("test"); } }
/** * Tag interface * @param output destination for xml output * @throws MissingAttributeException when the test attribute is missing * @throws Exception for anything else */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (test != null) { try { while (test.evaluateAsBoolean(getContext())) { if (log.isDebugEnabled()) { log.debug("evaluated to true! gonna keep on chuggin!"); } invokeBody(output); } } catch (BreakException e) { if (log.isDebugEnabled()) { log.debug("loop terminated by break: " + e, e); } } } else { throw new MissingAttributeException("test"); } }
public void run(JellyContext context, XMLOutput output) throws JellyTagException { if (getAttribute("test").evaluateAsBoolean(context)) getTagBody().run(context,output); } };
public void run(JellyContext context, XMLOutput output) throws JellyTagException { if (getAttribute("test").evaluateAsBoolean(context)) getTagBody().run(context,output); } };
public void run(JellyContext context, XMLOutput output) throws JellyTagException { if (getAttribute("test").evaluateAsBoolean(context)) getTagBody().run(context,output); } };
public void doTag(XMLOutput output) throws JellyTagException { ChooseTag tag = (ChooseTag) findAncestorWithClass( ChooseTag.class ); if ( tag == null ) { throw new JellyTagException( "This tag must be enclosed inside a <choose> tag" ); } if ( ! tag.isBlockEvaluated() && test != null ) { if ( test.evaluateAsBoolean( context ) ) { tag.setBlockEvaluated(true); invokeBody(output); } } }
public void doTag(XMLOutput output) throws JellyTagException { ChooseTag tag = (ChooseTag) findAncestorWithClass( ChooseTag.class ); if ( tag == null ) { throw new JellyTagException( "This tag must be enclosed inside a <choose> tag" ); } if ( ! tag.isBlockEvaluated() && test != null ) { if ( test.evaluateAsBoolean( context ) ) { tag.setBlockEvaluated(true); invokeBody(output); } } }
public void doTag(XMLOutput output) throws JellyTagException { ChooseTag tag = (ChooseTag) findAncestorWithClass( ChooseTag.class ); if ( tag == null ) { throw new JellyTagException( "This tag must be enclosed inside a <choose> tag" ); } if ( ! tag.isBlockEvaluated() && test != null ) { if ( test.evaluateAsBoolean( context ) ) { tag.setBlockEvaluated(true); invokeBody(output); } } }
public void doTag(XMLOutput output) throws JellyTagException { ChooseTag tag = (ChooseTag) findAncestorWithClass( ChooseTag.class ); if ( tag == null ) { throw new JellyTagException( "This tag must be enclosed inside a <choose> tag" ); } if ( ! tag.isBlockEvaluated() && test != null ) { if ( test.evaluateAsBoolean( context ) ) { tag.setBlockEvaluated(true); invokeBody(output); } } }
public void doTag(XMLOutput output) throws JellyTagException { if (test == null && xpath == null) { throw new MissingAttributeException( "test" ); } if (test != null) { if (! test.evaluateAsBoolean(context)) { fail( getBodyText(), "evaluating test: "+ test.getExpressionText() ); } } else { try { Object xpathContext = getXPathContext(); if (! xpath.booleanValueOf(xpathContext)) { fail( getBodyText(), "evaluating xpath: "+ xpath ); } } catch (JaxenException anException) { throw new JellyTagException("Error evaluating xpath", anException); } } }