Package org.apache.commons.jelly

Examples of org.apache.commons.jelly.MissingAttributeException


    public void doTag(XMLOutput output) throws Exception {

        if (uri == null) {

            throw new MissingAttributeException( "uri" );

        }

        // we need to create a new JellyContext of the URI
View Full Code Here


    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        if (uri == null) {
            throw new MissingAttributeException( "uri" );
        }

        // we need to create a new JellyContext of the URI
        // take off the script name from the URL
        context.runScript(uri, output, true, isInherit() );
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(final XMLOutput output) throws Exception {
        if ( xmlOutput == null ) {
            throw new MissingAttributeException("xmlOutput");
        }
       
        Thread thread = new Thread(
            new Runnable() {
                public void run() {
View Full Code Here

            if (test.evaluateAsBoolean(context)) {
                invokeBody(output);
            }
        }
        else {
            throw new MissingAttributeException( "test" );
        }

    }
View Full Code Here

        // run the body first to configure the task via nested
        invokeBody(output);

        // output the fileScanner
        if ( var == null ) {
            throw new MissingAttributeException( "var" );
        }
        context.setVariable( var, fileScanner );       
       
    }
View Full Code Here

   
    // Tag interface
    //-------------------------------------------------------------------------                   
    public void doTag(XMLOutput output) throws Exception {
        if ( name == null ) {
            throw new MissingAttributeException("name");
        }
        MethodSupportTag tag = (MethodSupportTag) findAncestorWithClass( MethodSupportTag.class );
        if ( tag == null ) {
            throw new JellyException("<http:header> tag must be within a <http:method> tag");
        }
View Full Code Here

     */
    public void doTag(final XMLOutput output) throws Exception
    {
        if ( this.outputDir == null )
        {
            throw new MissingAttributeException( "outputDir" );
        }

        invokeBody( output );

        Iterator grammarIter = this.grammars.iterator();
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------                   
    public void doTag(final XMLOutput output) throws Exception {
        if ( var == null ) {
            throw new MissingAttributeException( "var" );
        }
        if ( rootClass == null ) {
            throw new MissingAttributeException( "rootClass" );
        }
       
        reader.setXMLIntrospector(getIntrospector());
       
        Class theClass = null;
View Full Code Here

   
    // Tag interface
    //-------------------------------------------------------------------------                   
    public void doTag(final XMLOutput output) throws Exception {   
        if ( var == null ) {
            throw new MissingAttributeException("var");
        }

        if ( factory == null ) {
            factory = new com.sun.msv.verifier.jarv.TheFactoryImpl();
        }
View Full Code Here

      
    // Tag interface
    //-------------------------------------------------------------------------                   
    public void doTag(final XMLOutput output) throws Exception {   
        if ( verifier == null ) {
            throw new MissingAttributeException("verifier");
        }
        boolean valid = false;
       
        // evaluate the body using the current Verifier
        if ( errorHandler != null ) {
View Full Code Here

TOP

Related Classes of org.apache.commons.jelly.MissingAttributeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.