Package org.apache.commons.jelly

Examples of org.apache.commons.jelly.MissingAttributeException


    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws JellyTagException {
        try {
            if ( null == methodName) {
                throw new MissingAttributeException( "method" );
            }
            invokeBody(output);

            Object[] values = paramValues.toArray();
            Class[] types = (Class[])(paramTypes.toArray(new Class[paramTypes.size()]));
View Full Code Here


    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
        if ( null == methodName) {
            throw new MissingAttributeException( "method" );
        }
        if ( null == onInstance ) {
            throw new MissingAttributeException( "on" );
        }

        invokeBody(output);

        Object[] values = paramValues.toArray();
View Full Code Here

    public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
        ArgTag parentArg = null;
        if ( var == null ) {
            parentArg = (ArgTag)(findAncestorWithClass(ArgTag.class));
            if(null == parentArg) {
                throw new MissingAttributeException( "var" );
            }
        }
        if ( className == null ) {
            throw new MissingAttributeException( "className" );
        }
        invokeBody(output);

        try {
            Class theClass = getClassLoader().loadClass( className );
View Full Code Here

        checkObjectAttribute( name,
                              value );

        if ( value.trim().equals( "" ) )
        {
            throw new MissingAttributeException( name );
        }
    }
View Full Code Here

    protected void checkObjectAttribute(String name,
                                        Object value) throws MissingAttributeException
    {
        if ( value == null )
        {
            throw new MissingAttributeException( name );
        }
    }
View Full Code Here

        {
            engine = getEngine();

            if ( engine == null )
            {
                throw new MissingAttributeException( "engine" );
            }

            boolean async = false;

            if ( this.async != null )
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(final XMLOutput output) throws Exception {
        if ( name == null ) {
            throw new MissingAttributeException( "name" );
        }
        XMLOutput newOutput = XMLOutput.createXMLOutput(new FileOutputStream(name));
        try {
            newOutput.startDocument();
            invokeBody(newOutput);
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        if (test == null && xpath == null) {
            throw new MissingAttributeException( "test" );
        }
        if (test != null) {
            if (! test.evaluateAsBoolean(context)) {
                fail( getBodyText() );
            }
View Full Code Here

    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

    //-------------------------------------------------------------------------                   
    public void doTag(XMLOutput output) throws Exception {
        invokeBody(output);
       
    if (name == null) {
      throw new MissingAttributeException("name");
    }
    if (className == null) {
      throw new MissingAttributeException("className");
    }
       
    Class theClass = null;
    try {
      ClassLoader classLoader = getClassLoader();
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.