Examples of StageDescriptor


Examples of org.apache.avalon.meta.info.StageDescriptor

        }

        writer.write( "\n  <stages>" );
        for( int i = 0; i < stages.length; i++ )
        {
            final StageDescriptor stage = stages[ i ];
            writer.write( "\n    <stage " );
            writer.write( "id=\"" );
            writer.write( stage.getKey() );

            final int count = stage.getAttributeNames().length;
            if( 0 == count )
            {
                writer.write( "\"/>" );
            }
            else
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

        }

        writer.write( "\n  <stages>" );
        for( int i = 0; i < stages.length; i++ )
        {
            final StageDescriptor stage = stages[ i ];
            writer.write( "\n    <stage " );
            writer.write( "id=\"" );
            writer.write( stage.getKey() );

            final int count = stage.getAttributeNames().length;
            if( 0 == count )
            {
                writer.write( "\"/>" );
            }
            else
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

    {
        String value = getNamedParameter( tag, TYPE_PARAM, null );
        if( value != null )
        {
            final String type = resolveType( value );
            return new StageDescriptor( type );
        }
        else
        {
            value = getNamedParameter( tag, LEGACY_URN_PARAM, null );
            if( value == null )
            {
                value = getNamedParameter( tag, ID_PARAM );
            }
            return new StageDescriptor( value );
        }
    }
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

    {
        ArrayList list = new ArrayList();
        Configuration[] stages = config.getChildren( "stage" );
        for( int i = 0; i < stages.length; i++ )
        {
            StageDescriptor stage = buildPhase( stages[i] );
            list.add( stage );
        }
        return (StageDescriptor[])list.toArray( new StageDescriptor[ 0 ] );
    }
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

            if( id == null ) id = config.getAttribute( "id" ); // standard

            final Properties attributes =
              buildAttributes( config.getChild( "attributes" ) );
            return new StageDescriptor( id, attributes );
        }
        catch( Throwable e )
        {
            final String error =
              "Unable to construct a stage descriptor from source fragment:"
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

        }

        writer.write( "\n  <stages>" );
        for( int i = 0; i < stages.length; i++ )
        {
            final StageDescriptor stage = stages[ i ];
            writer.write( "\n    <stage " );
            writer.write( "id=\"" );
            writer.write( stage.getKey() );

            final int count = stage.getAttributeNames().length;
            if( 0 == count )
            {
                writer.write( "\"/>" );
            }
            else
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

    {
        ArrayList list = new ArrayList();
        Configuration[] stages = config.getChildren( "stage" );
        for( int i = 0; i < stages.length; i++ )
        {
            StageDescriptor stage = buildPhase( stages[i] );
            list.add( stage );
        }
        return (StageDescriptor[])list.toArray( new StageDescriptor[ 0 ] );
    }
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

            if( id == null ) id = config.getAttribute( "id" ); // standard

            final Properties attributes =
              buildAttributes( config.getChild( "attributes" ) );
            return new StageDescriptor( id, attributes );
        }
        catch( Throwable e )
        {
            final String error =
              "Unable to construct a stage descriptor from source fragment:"
View Full Code Here

Examples of org.apache.avalon.meta.info.StageDescriptor

    {
        String value = getNamedParameter( tag, TYPE_PARAM, null );
        if( value != null )
        {
            final String type = resolveType( value );
            return new StageDescriptor( type );
        }
        else
        {
            value = getNamedParameter( tag, LEGACY_URN_PARAM, null );
            if( value == null )
            {
                value = getNamedParameter( tag, ID_PARAM );
            }
            return new StageDescriptor( value );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.