public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (xpCmp == null) { throw new MissingAttributeException( "xpCmp" ); } if (list == null) { throw new MissingAttributeException( "list" ); } Collections.sort(list, xpCmp); }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if ( script == null ) { throw new MissingAttributeException("script"); } script.run(context, output); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
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 { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { this.defaultEncountered = false; this.someCaseMatched = false; this.fallingThru = false; if(null == on) { throw new MissingAttributeException("on"); } else { value = on.evaluate(context); invokeBody(output); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { this.defaultEncountered = false; this.someCaseMatched = false; this.fallingThru = false; if(null == on) { throw new MissingAttributeException("on"); } else { value = on.evaluate(context); invokeBody(output); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
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 { this.defaultEncountered = false; this.someCaseMatched = false; this.fallingThru = false; if(null == on) { throw new MissingAttributeException("on"); } else { value = on.evaluate(context); invokeBody(output); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { this.defaultEncountered = false; this.someCaseMatched = false; this.fallingThru = false; if(null == on) { throw new MissingAttributeException("on"); } else { value = on.evaluate(context); invokeBody(output); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
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" ); } }
/** * Checks if all mandatory attributes are defined. * * @throws MissingAttributeException if attributes are missing */ protected void checkAttributes() throws MissingAttributeException { if (!getTextIconData().isDefined()) { throw new MissingAttributeException("text or icon"); } /* if */ } }
/** * {@inheritDoc} This implementation contains the actual logic of this tag. */ public void doTag(XMLOutput output) throws JellyTagException { if (getResource() == null) { throw new MissingAttributeException("resource"); } if (getVar() == null) { throw new MissingAttributeException("var"); } storeResult(resolveResource()); }
/** * Validates the attributes of this tag. This method is invoked before the * push button is created. This implementation tests if either a text or an * icon is provided. If both are undefined, an exception will be thrown. * * @throws FormBuilderException if an error occurs * @throws JellyTagException if the tag is incorrectly used */ protected void validateTag() throws FormBuilderException, JellyTagException { if (!getTextIconData().isDefined()) { throw new MissingAttributeException("text or icon"); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (name == null) { throw new MissingAttributeException( "name" ); } try { output.startDTD(name, publicId, systemId); invokeBody(output); output.endDTD(); } catch (SAXException e) { throw new JellyTagException(e); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (getVar() == null) { throw new MissingAttributeException("The var attribute cannot be null"); } Document document = getXmlDocument(output); context.setVariable(getVar(), document); }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (select == null) { throw new MissingAttributeException( "select" ); } Object xpathContext = getXPathContext(); try { if ( select.booleanValueOf(xpathContext) ) { invokeBody(output); } } catch (XPathException e) { throw new JellyTagException(e); } }