Examples of Stereotype


Examples of org.eclipse.uml2.uml.Stereotype

  protected void createRequirement(org.eclipse.uml2.uml.Package owner, String id,
      String text) {
    org.eclipse.uml2.uml.Class requirement = owner.createOwnedClass(
        "tmpName", false);
    Stereotype reqStereotype = requirement
        .getApplicableStereotype(REQUIREMENT_STEREOTYPE);
    requirement.applyStereotype(reqStereotype);
    requirement.setName(id);
    requirement.setValue(reqStereotype,
        REQUIREMENT_ID_ATT, id);
View Full Code Here

Examples of org.eclipse.uml2.uml.Stereotype

public class NameIsUnique extends AbstractModelConstraint {
  @Override
  public IStatus validate(IValidationContext ctx) {
    Class uml_class = (Class) ctx.getTarget();
    Stereotype stereotype = uml_class.getAppliedStereotype("SysML::Blocks::Block");
   
    //
    // We only check SysML Blocks
    //
    if (stereotype == null) {
View Full Code Here

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

        Collection stereotypes = element.getStereotype();
        for (final Iterator stereotypeIterator = stereotypes.iterator();
             stereotypeIterator.hasNext() && !stereotypePresent;)
        {
            Stereotype stereotype = (Stereotype)stereotypeIterator.next();
            if (stereotypeName.equals(stereotype.getName()))
            {
                stereotypePresent = true;
            }
        }
        return stereotypePresent;
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.