Package org.apache.commons.jelly

Examples of org.apache.commons.jelly.MissingAttributeException


    protected void checkAttribute( Object attribute, String message )
        throws MissingAttributeException
    {
        if ( attribute == null )
        {
            throw new MissingAttributeException( message );
        }
    }
View Full Code Here


        this.cactusScanner.processFileSet(this.fileset, cp);

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

    {
        checkAttribute( getBasedir(), "basedir" );

        if ( getGlob() == null && getIncludes() == null && projectList == null )
        {
            throw new MissingAttributeException( "glob|includes|projectList" );
        }

        log.info( "Starting the reactor..." );

        List sortedProjects = null;
View Full Code Here

    public void doTag( final XMLOutput output )
        throws JellyTagException
    {
        if ( var == null )
        {
            throw new MissingAttributeException( "var" );
        }

        Map answer = createMap();

        Iterator iter = getProject().getGoals().iterator();
View Full Code Here

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

    // Tag interface
    //-------------------------------------------------------------------------                   
    public void doTag(final XMLOutput output) throws Exception {

        if ( var == null ) {
            throw new MissingAttributeException( "var" );
        }
        invokeBody(output);       
       
        XMLIntrospector introspector = getIntrospector();
       
View Full Code Here

     */
    public void doTag(XMLOutput output) throws Exception
    {
        if ( getSpec() == null )
        {
            throw new MissingAttributeException( "spec" );
        }

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

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

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

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

        CronTrigger trigger = new CronTrigger( getName(),
                                               getGroup() );

View Full Code Here

     */
    public void doTag(XMLOutput output) throws Exception
    {
        if ( getName() == null )
        {
            throw new MissingAttributeException( "name" );
        }

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

        Scheduler sched = getScheduler();

        JobDetail detail = new JobDetail( getName(),
View Full Code Here

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

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

        if ( this.delim == null )
        {
            throw new MissingAttributeException( "var" );
        }

        StringTokenizer tokenizer = new StringTokenizer( getBodyText(),
                                                         this.delim );
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.