Examples of ModelElement


Examples of org.omg.uml.foundation.core.ModelElement

        Collection stereotypeNames = new ArrayList();

        Collection stereotypes = metaObject.getStereotype();
        for (final Iterator stereotypeIt = stereotypes.iterator(); stereotypeIt.hasNext();)
        {
            ModelElement stereotype = (ModelElement)stereotypeIt.next();
            if (stereotype != null)
            {
                stereotypeNames.add(StringUtils.trimToEmpty(stereotype.getName()));
            }
        }
        return stereotypeNames;
    }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

        final Collection machines = UML14MetafacadeUtils.getModel().getStateMachines().getStateMachine().refAllOfType();
        for (final Iterator machineIterator = machines.iterator(); machineIterator.hasNext();)
        {
            final StateMachine machine = (StateMachine)machineIterator.next();
            final ModelElement contextElement = machine.getContext();
            if (metaObject.equals(contextElement))
            {
                machineContext = machine;
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

                .refAllOfType();
        modelElement = CollectionUtils.find(elements, new Predicate()
        {
            public boolean evaluate(Object object)
            {
                ModelElement element = (ModelElement)object;
                StringBuffer fullName = new StringBuffer(getPackageName(element, separator, modelName));
                String name = element.getName();
                if (StringUtils.isNotBlank(name))
                {
                    String namespaceSeparator = MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR;
                    if (!modelName)
                    {
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

        {
            String id = facade.getId();
            Collection graphs = getModel().getActivityGraphs().getActivityGraph().refAllOfType();
            for (final Iterator iterator = graphs.iterator(); iterator.hasNext() && activityGraph == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    activityGraph = (ActivityGraph)element;
                }
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

        {
            String id = facade.getId();
            Collection useCases = getModel().getUseCases().getUseCase().refAllOfType();
            for (final Iterator iterator = useCases.iterator(); iterator.hasNext() && useCase == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    useCase = (UseCase)element;
                }
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

        {
            String id = facade.getId();
            Collection parameters = getModel().getCore().getParameter().refAllOfType();
            for (final Iterator iterator = parameters.iterator(); iterator.hasNext() && parameter == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    parameter = (Parameter)element;
                }
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

        {
            String id = facade.getId();
            Collection events = getModel().getStateMachines().getEvent().refAllOfType();
            for (final Iterator iterator = events.iterator(); iterator.hasNext() && event == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    event = (Event)element;
                }
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.ModelElement

     * @param facade the model element facade for which to find the meta class.
     * @return the meta model element
     */
    static ModelElement getMetaClass(ModelElementFacade facade)
    {
        ModelElement modelElement = null;

        if (facade != null)
        {
            String id = facade.getId();
            Collection modelElements = getModel().getCore().getModelElement().refAllOfType();
            for (final Iterator iterator = modelElements.iterator(); iterator.hasNext() && modelElement == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    modelElement = element;
                }
            }
        }
View Full Code Here

Examples of org.wildfly.extension.picketlink.common.model.ModelElement

            // if the current element is supported but is not a model element
            if (XMLElement.forName(reader.getLocalName()) != null) {
                continue;
            }

            ModelElement modelKey = ModelElement.forName(reader.getLocalName());

            if (modelKey == null) {
                throw unexpectedElement(reader);
            }
View Full Code Here

Examples of org.wildfly.extension.picketlink.common.model.ModelElement

            if (reader.getLocalName().equals(parentElement.getName())) {
                continue;
            }

            ModelElement element = ModelElement.forName(reader.getLocalName());

            if (element == null) {
                if (XMLElement.forName(reader.getLocalName()) != null) {
                    continue;
                }
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.