Examples of addVersion()


Examples of ch.uzh.ifi.seal.changedistiller.model.entities.AttributeHistory.addVersion()

    public StructureEntityVersion createFieldInClassHistory(ClassHistory classHistory, JavaStructureNode node, String versionNum) {
        AttributeHistory ah = null;
        StructureEntityVersion attribute = createStructureEntityVersion(node, versionNum);
        if (classHistory.getAttributeHistories().containsKey(attribute.getUniqueName())) {
            ah = classHistory.getAttributeHistories().get(attribute.getUniqueName());
            ah.addVersion(attribute);
        } else {
            ah = new AttributeHistory(attribute);
            classHistory.getAttributeHistories().put(attribute.getUniqueName(), ah);
        }
        return attribute;
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.model.entities.ClassHistory.addVersion()

    public StructureEntityVersion createInnerClassInClassHistory(ClassHistory classHistory, JavaStructureNode node, String versionNum) {
        ClassHistory ch = null;
        StructureEntityVersion clazz = createStructureEntityVersion(node, versionNum);
        if (classHistory.getInnerClassHistories().containsKey(clazz.getUniqueName())) {
            ch = classHistory.getInnerClassHistories().get(clazz.getUniqueName());
            ch.addVersion(clazz);
        } else {
            ch = new ClassHistory(clazz);
            classHistory.getInnerClassHistories().put(clazz.getUniqueName(), ch);
        }
        return clazz;
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.model.entities.MethodHistory.addVersion()

    public StructureEntityVersion createMethodInClassHistory(ClassHistory classHistory, JavaStructureNode node, String versionNum) {
        MethodHistory mh;
        StructureEntityVersion method = createStructureEntityVersion(node, versionNum);
        if (classHistory.getMethodHistories().containsKey(method.getUniqueName())) {
            mh = classHistory.getMethodHistories().get(method.getUniqueName());
            mh.addVersion(method);
        } else {
            mh = new MethodHistory(method);
            classHistory.getMethodHistories().put(method.getUniqueName(), mh);
        }
        return method;
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass.addVersion()

      for(String lbl: src.getLabels())
        dst.addLabel(lbl);
      for(String com: src.getComments())
        dst.addComment(com);
      if(src.getVersion() != null)
        dst.addVersion(src.getVersion());
   
      // copy properties
      for(IProperty sp : src.getProperties()){
        // skip PartOf, and has_PART
        if(HAS_PART.equals(sp.getName()) || PART_OF.equals(sp.getName()))
View Full Code Here

Examples of edu.pitt.ontology.IClass.addVersion()

      for(String lbl: src.getLabels())
        dst.addLabel(lbl);
      for(String com: src.getComments())
        dst.addComment(com);
      if(src.getVersion() != null)
        dst.addVersion(src.getVersion());
   
      // copy properties
      for(IProperty sp : src.getProperties()){
        // skip PartOf, and has_PART
        if(HAS_PART.equals(sp.getName()) || PART_OF.equals(sp.getName()))
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.Artifact.addVersion()

      user.getFollowedArtifacts().get(0).setLastNotifiedVersionDate(previousDate.getTime());
      artifact.setStatus(ArtifactStatus.INITIALIZED);
     
      ArtifactVersion artifactVersion = new ArtifactVersion("2.0-test", new Date());
      artifactVersionService.create(artifactVersion);
      artifact.addVersion(artifactVersion);
    }
    mavenSynchronizationService.synchronizeAllArtifactsAndNotifyUsers();

    User testUser = userService.getByUserName("firstname.lastname@test.fr");
    assertTrue(!testUser.getFollowedArtifacts().isEmpty());
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.project.model.Project.addVersion()

      if (projectVersion == null) {
        projectVersion = new ProjectVersion(artifactVersion.getVersion());
        projectVersion.setStatus(ProjectVersionStatus.PUBLISHED_ON_MAVEN_CENTRAL);
        projectVersionService.create(projectVersion);
       
        project.addVersion(projectVersion);
        projectService.update(project);
      } else if (ProjectVersionStatus.IN_PROGRESS.equals(projectVersion.getStatus())) {
        projectVersion.setStatus(ProjectVersionStatus.PUBLISHED_ON_MAVEN_CENTRAL);
      }
      projectVersion.setLastUpdateDate(artifactVersion.getLastUpdateDate());
View Full Code Here

Examples of nexj.core.meta.upgrade.Upgrade.addVersion()

      // single incompatible step
      metadata.setVersion("1-step");
      upgradeVersion = new RelationalSchemaUpgrade(metadata.getVersion());
      upgradeVersion.addStep(execStep);
      upgradeVersion.setDataSource(ds);
      upgrade.addVersion(upgradeVersion);

      try
      {
         upgrade.validate(null, null); // must fail since an incompatible step "1-step" exists
         fail(); // exception expected
View Full Code Here

Examples of org.apache.archiva.indexer.search.SearchResultHit.addVersion()

        SearchResultHit hit = new SearchResultHit();
        hit.setGroupId("org.apache.archiva");
        hit.setArtifactId("archiva-configuration");
        hit.setUrl("url");
        hit.addVersion("1.0");
        hit.addVersion("1.1");

        SearchResults results = new SearchResults();
        results.setLimits(limits);
        results.setTotalHits(1);
View Full Code Here

Examples of org.apache.archiva.indexer.search.SearchResultHit.addVersion()

        SearchResultHit hit = new SearchResultHit();
        hit.setGroupId("org.apache.archiva");
        hit.setArtifactId("archiva-configuration");
        hit.setUrl("url");
        hit.addVersion("1.0");
        hit.addVersion("1.1");

        SearchResults results = new SearchResults();
        results.setLimits(limits);
        results.setTotalHits(1);
        results.addHit(SearchUtil.getHitId("org.apache.archiva", "archiva-configuration", null, "jar"), hit);
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.