Package org.apache.beehive.netui.compiler.model.schema.struts11.SetPropertyDocument

Examples of org.apache.beehive.netui.compiler.model.schema.struts11.SetPropertyDocument.SetProperty


        if ( _actionOutputs != null && _actionOutputs.size() > 0 )
        {
            if ( xb.getClassName() == null ) xb.setClassName( JPF_ACTION_FWD_CLASSNAME );

            int n = _actionOutputs.size();
            SetProperty countProp = xb.addNewSetProperty();
            countProp.setProperty( "actionOutputCount" );
            countProp.setValue( Integer.toString( n ) );
           
            for ( int i = 0; i < n; ++i )
            {
                ActionOutputModel pi = ( ActionOutputModel ) _actionOutputs.get( i );
                SetProperty prop = xb.addNewSetProperty();
                prop.setProperty( "actionOutput" + i );
                prop.setValue( pi.getType() + '|' + pi.getNullable() + '|' + pi.getName() );
            }
        }
       
        //
        // "nestedReturn" is set using set-property, which requires us to override the
View Full Code Here


        return _isNestedReturn;
    }
   
    private static void addSetProperty( Forward xb, String propertyName, String propertyValue )
    {
        SetProperty prop = xb.addNewSetProperty();
        prop.setProperty( propertyName );
        prop.setValue( propertyValue );
        if ( xb.getClassName() == null ) xb.setClassName( JPF_ACTION_FWD_CLASSNAME );
    }
View Full Code Here

        addSetProperty( xb, propertyName, Boolean.toString( propertyValue ) );
    }
   
    private void addSetProperty( ActionDocument.Action xb, String propertyName, String propertyValue )
    {
        SetProperty prop = xb.addNewSetProperty();
        prop.setProperty( propertyName );
        prop.setValue( propertyValue );
        if ( xb.getClassName() == null ) xb.setClassName( JPF_ACTION_MAPPING_CLASSNAME );
    }
View Full Code Here

        if ( xb.getHandler() == null && _handlerClass != null ) xb.setHandler( _handlerClass );
    }
   
    private void addSetProperty( ExceptionDocument.Exception xb, String propertyName, String propertyValue )
    {
        SetProperty prop = xb.addNewSetProperty();
        prop.setProperty( propertyName );
        prop.setValue( propertyValue );
        if ( xb.getClassName() == null ) xb.setClassName( JPF_EXCEPTION_CONFIG_CLASSNAME );
    }
View Full Code Here

        if ( xb.getClassName() == null &&_className != null ) xb.setClassName( _className );
        if ( xb.getDynamic() == null && _dynamic ) xb.setDynamic( FormBeanDocument.FormBean.Dynamic.TRUE );

        if ( _actualType != null && ! _actualType.equals( xb.getType() ) )
        {
            SetProperty prop = xb.addNewSetProperty();
            prop.setProperty( "actualType" );
            prop.setValue( _actualType );
            if ( xb.getClassName() == null ) xb.setClassName( JPF_ACTION_FORM_BEAN_CLASSNAME );
        }
       
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.model.schema.struts11.SetPropertyDocument.SetProperty

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.