Package org.eclipse.sapphire.modeling.el

Examples of org.eclipse.sapphire.modeling.el.Function.evaluate()


            this.messageFunction = messageFunction;
           
            Function ruleFunction = ExpressionLanguageParser.parse( rule );
            ruleFunction = FailSafeFunction.create( ruleFunction, Boolean.class, false );
           
            this.ruleFunctionResult = ruleFunction.evaluate( new ModelElementFunctionContext( element ) );
        }
       
        public Status validation()
        {
            if( ( (Boolean) this.ruleFunctionResult.value() ) == false )
View Full Code Here


                {
                    function = FailSafeFunction.create( function, Literal.create( String.class ) );
                   
                    final ModelElementFunctionContext context = new ModelElementFunctionContext( context( Element.class ) );
                   
                    this.functionResult = function.evaluate( context );
                   
                    final Listener listener = new Listener()
                    {
                        @Override
                        public void handle( final Event event )
View Full Code Here

                {
                    function = FailSafeFunction.create( function, Literal.create( String.class ) );
                   
                    final ModelElementFunctionContext context = new ModelElementFunctionContext( context( Element.class ) );
                   
                    this.functionResult = function.evaluate( context );
                   
                    final Listener listener = new Listener()
                    {
                        @Override
                        public void handle( final Event event )
View Full Code Here

        }
        else
        {
            function = FailSafeFunction.create( function, Literal.create( VersionConstraint.class ), null );
           
            this.functionResult = function.evaluate( new ModelElementFunctionContext( element ) );
           
            this.functionResult.attach
            (
                new Listener()
                {
View Full Code Here

        }
       
        if( versionFunction == null )
        {
            versionFunction = Literal.NULL;
            this.versionedFunctionResult = versionFunction.evaluate( new FunctionContext() );
        }
        else
        {
            versionFunction = FailSafeFunction.create( versionFunction, Literal.create( Version.class ), null );
           
View Full Code Here

        }
        else
        {
            versionFunction = FailSafeFunction.create( versionFunction, Literal.create( Version.class ), null );
           
            this.versionFunctionResult = versionFunction.evaluate( new ModelElementFunctionContext( element ) );
           
            this.versionFunctionResult.attach
            (
                new Listener()
                {
View Full Code Here

        }
       
        if( versionedFunction == null )
        {
            versionedFunction = Literal.NULL;
            this.versionedFunctionResult = versionedFunction.evaluate( new FunctionContext() );
        }
        else
        {
            versionedFunction = FailSafeFunction.create( versionedFunction, Literal.create( String.class ), null );
           
View Full Code Here

        }
        else
        {
            versionedFunction = FailSafeFunction.create( versionedFunction, Literal.create( String.class ), null );
           
            this.versionedFunctionResult = versionedFunction.evaluate( new ModelElementFunctionContext( element ) );
           
            this.versionedFunctionResult.attach
            (
                new Listener()
                {
View Full Code Here

                {
                    function = FailSafeFunction.create( function, Literal.create( String.class ) );
                   
                    final ModelElementFunctionContext context = new ModelElementFunctionContext( context( Element.class ) );
                   
                    this.functionResult = function.evaluate( context );
                   
                    final Listener listener = new Listener()
                    {
                        @Override
                        public void handle( final Event event )
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.