Package org.eclipse.rmf.reqif10

Examples of org.eclipse.rmf.reqif10.AttributeValue


  /**
   * Creates a properly configured SpecRelation object between proxy and target.
   */
  private SpecRelation createLink(CompoundCommand cmd, SpecObject proxy) {
    SpecRelation link;
    link= ReqIF10Factory.eINSTANCE.createSpecRelation();
    TracingConfiguration config = getTracingConfig();
    link.setSource(config.isLinkFromTarget() ? target : proxy);
    link.setTarget(config.isLinkFromTarget() ? proxy : target);
    cmd.append(ProrUtil.createAddTypedElementCommand(
        ReqIF10Util.getReqIF(config).getCoreContent(),
        ReqIF10Package.Literals.REQ_IF_CONTENT__SPEC_RELATIONS,
        link, ReqIF10Package.Literals.SPEC_RELATION__TYPE,
        config.getLinkType(), 0, 0, domain, itemProvider.getAdapterFactory()));
View Full Code Here


    ad_proxy.setType(t_string);
    proxyType.getSpecAttributes().add(ad_proxy);
    content.getSpecTypes().add(proxyType);
   
    // Build SpecRelationType for linking
    SpecRelationType linkType = rf.createSpecRelationType();
    content.getSpecTypes().add(linkType);

    // Add the Config Element
    ProrToolExtension toolExtension = cf.createProrToolExtension();
    ReqIFToolExtensionUtil.addToolExtension(reqif, toolExtension);
View Full Code Here

   */
  private SpecRelation findLinkFor(SpecObject proxy) {
    TracingConfiguration config = getTracingConfig();
    SpecObject linkSource = config.isLinkFromTarget() ? target : proxy;
    SpecObject linkTarget = config.isLinkFromTarget() ? proxy : target;
    SpecRelationType type = config.getLinkType();
   
    for (SpecRelation relation : ReqIF10Util.getReqIF(config)
        .getCoreContent().getSpecRelations()) {
      //  It's okay to compare null and references.
      if (relation.getType() == type && linkSource == relation.getSource()
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setLinkType(SpecRelationType newLinkType) {
    SpecRelationType oldLinkType = linkType;
    linkType = newLinkType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TracingPackage.TRACING_CONFIGURATION__LINK_TYPE, oldLinkType, linkType));
  }
View Full Code Here

   
  }

  private ReqIF buildTestReqif() throws IOException {
    ReqIF10Factory rf = ReqIF10Factory.eINSTANCE;
    ConfigurationFactory cf = ConfigurationFactory.eINSTANCE;
    ReqIF reqif = rf.createReqIF();
    ReqIFContent content = rf.createReqIFContent();
    reqif.setCoreContent(content);
   
    // Build the Datatypes
    DatatypeDefinitionString t_string = rf.createDatatypeDefinitionString();
    content.getDatatypes().add(t_string);
   
    // Build SpecObject Type for requirements.
    SpecObjectType requirementType = rf.createSpecObjectType();
    AttributeDefinitionString ad_requirement = rf.createAttributeDefinitionString();
    ad_requirement.setType(t_string);
    requirementType.getSpecAttributes().add(ad_requirement);
    content.getSpecTypes().add(requirementType);
   
    // Build SpecObject Type for proxy.
    SpecObjectType proxyType = rf.createSpecObjectType();
    AttributeDefinitionString ad_proxy = rf.createAttributeDefinitionString();
    ad_proxy.setType(t_string);
    proxyType.getSpecAttributes().add(ad_proxy);
    content.getSpecTypes().add(proxyType);
   
    // Build SpecRelationType for linking
    SpecRelationType linkType = rf.createSpecRelationType();
    content.getSpecTypes().add(linkType);

    // Add the Config Element
    ProrToolExtension toolExtension = cf.createProrToolExtension();
    ReqIFToolExtensionUtil.addToolExtension(reqif, toolExtension);
    ProrPresentationConfigurations presentationConfigs = cf.createProrPresentationConfigurations();
    toolExtension.setPresentationConfigurations(presentationConfigs);
    config = TracingFactory.eINSTANCE.createTracingConfiguration();
   
    // Configure the Config Element
    presentationConfigs.getPresentationConfigurations().add(config);
View Full Code Here

    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    ConfigurationPackage theConfigurationPackage = (ConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ConfigurationPackage.eNS_URI);
    ReqIF10Package theReqIF10Package = (ReqIF10Package)EPackage.Registry.INSTANCE.getEPackage(ReqIF10Package.eNS_URI);
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    tracingConfigurationEClass.getESuperTypes().add(theConfigurationPackage.getProrPresentationConfiguration());

    // Initialize classes and features; add operations and parameters
    initEClass(tracingConfigurationEClass, TracingConfiguration.class, "TracingConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTracingConfiguration_ProxyType(), theReqIF10Package.getSpecObjectType(), null, "proxyType", null, 0, 1, TracingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getTracingConfiguration_ProxyAttribute(), theReqIF10Package.getAttributeDefinitionString(), null, "proxyAttribute", null, 0, 1, TracingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
View Full Code Here

    content.getSpecTypes().add(linkType);

    // Add the Config Element
    ProrToolExtension toolExtension = cf.createProrToolExtension();
    ReqIFToolExtensionUtil.addToolExtension(reqif, toolExtension);
    ProrPresentationConfigurations presentationConfigs = cf.createProrPresentationConfigurations();
    toolExtension.setPresentationConfigurations(presentationConfigs);
    config = TracingFactory.eINSTANCE.createTracingConfiguration();
   
    // Configure the Config Element
    presentationConfigs.getPresentationConfigurations().add(config);
    config.setDatatype(t_string);
    config.setLinkType(linkType);
    config.setProxyAttribute(ad_proxy);
    config.setProxyType(proxyType);
   
View Full Code Here

    // Build SpecRelationType for linking
    SpecRelationType linkType = rf.createSpecRelationType();
    content.getSpecTypes().add(linkType);

    // Add the Config Element
    ProrToolExtension toolExtension = cf.createProrToolExtension();
    ReqIFToolExtensionUtil.addToolExtension(reqif, toolExtension);
    ProrPresentationConfigurations presentationConfigs = cf.createProrPresentationConfigurations();
    toolExtension.setPresentationConfigurations(presentationConfigs);
    config = TracingFactory.eINSTANCE.createTracingConfiguration();
   
    // Configure the Config Element
    presentationConfigs.getPresentationConfigurations().add(config);
    config.setDatatype(t_string);
View Full Code Here

TOP

Related Classes of org.eclipse.rmf.reqif10.AttributeValue

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.