Package org.useware.kernel.model.mapping

Examples of org.useware.kernel.model.mapping.Node


                        Integer scopeId = newScopeId();
                        container.setScopeId(scopeId);

                        return rootScope.addChild(
                                new Node(
                                        new Scope(scopeId)
                                )
                        );
                    }
View Full Code Here


                        int numSiblings = getParentScope().getNumberOfChildren();
                        if(numSiblings==0)
                        {
                            // first sibling
                            newScope = getParentScope().addChild(
                                    new Node(
                                            new Scope(scopeId)
                                    )
                            );
                        }
                        else
                        {
                            // remaining siblingß
                            Node<Scope> siblingScope = getParentScope().getChildren().get(numSiblings - 1);
                            newScope = siblingScope.addChild(new Node(
                                    new Scope(scopeId)
                            ));
                        }

                    }
                    else
                    {
                         // parent chaining
                         newScope = getParentScope().addChild(
                                 new Node(
                                         new Scope(scopeId)
                                 )
                         );
                    }

                    return newScope;
                }
                else
                {
                    // scope remains the same
                    childContainer.setScopeId(
                            getParentScope().getData().getId()
                    );

                    return getParentScope();
                }

            }

            @Override
            void applyUnit(InteractionUnit unit) {

                int scopeId = getParentScope().getData().getId();
                unit.setScopeId(scopeId);

                getParentScope().addChild(
                        new Node(
                                new Scope(scopeId)
                        )
                );
            }
        });
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.mapping.Node

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.