Examples of ReqIF


Examples of org.eclipse.rmf.reqif10.ReqIF

  }

  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);
   
View Full Code Here

Examples of org.eclipse.rmf.reqif10.ReqIF

  /**
   * The external element (to be traced from/to) must be persisted.  For simplicity, we use
   * a ReqIF model.
   */
  private EObject buildTestExternal() throws IOException {
    ReqIF reqif  = ReqIF10Factory.eINSTANCE.createReqIF();
    ReqIFHeader header= ReqIF10Factory.eINSTANCE.createReqIFHeader();
    header.setTitle("HeaderTitle");
    reqif.setTheHeader(header);
    external = header;
   
    File file = File.createTempFile("tracing-test-", ".reqif");
    file.deleteOnExit();
    URI uri = URI.createFileURI(file.getAbsolutePath());
View Full Code Here

Examples of org.eclipse.rmf.reqif10.ReqIF

   * Tries to find the proxy with the given URI.  Returns null if not found.
   */
  SpecObject findProxyFor(EObject element) {
    TracingConfiguration config = getTracingConfig();
    String uri = EcoreUtil.getURI(element).toString();
    ReqIF reqif = ReqIF10Util.getReqIF(config);
    AttributeDefinitionString ad = config.getProxyAttribute();

    // Iterate SpecObjects and search for existing proxy element
    for (SpecObject specObject : reqif.getCoreContent().getSpecObjects()) {
      AttributeValue value = ReqIF10Util
          .getAttributeValue(specObject, ad);
      if (value instanceof AttributeValueString) {
        String tmpUrl = TracingConfigurationItemProvider
            .getProxyUrlFromValue(((AttributeValueString) value)
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.