Package info.textgrid.lab.noteeditor.mei2013

Examples of info.textgrid.lab.noteeditor.mei2013.Role


      processSlur(graphics, (SlurForm) slurForm);
    }
  }

  private void processTie(Graphics graphics, TieForm tieForm) {
    Tie tieNode = (Tie) tieForm.getMeiNode();
    String startId = tieNode.getStartid();
    String endId = tieNode.getEndid();
    if (startId != null
        && endId != null
        && this.figurePassingObject.getNoteHeadLocationMap()
            .containsKey(startId)
        && this.figurePassingObject.getNoteHeadLocationMap()
View Full Code Here


            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof TieForm) {
      TieForm contentForm = (TieForm) childForm;
      Tie contentNode = (Tie) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof SlurForm) {
      SlurForm contentForm = (SlurForm) childForm;
      Slur contentNode = (Slur) contentForm.getMeiNode();
      return contentNode;
View Full Code Here

    getTie().unsetLayers();
    getTie().getLayers().add(new BigInteger(StringConstants.STRING_EMPTY + newLayer));
  }

  private void createDefaultTie() {
    Tie tie = new Tie();
    setMeiNode(tie);
  }
View Full Code Here

  public static Mei createDefaultMeiTree(int stavesCount, int measureCount) {
    Mei mei = new Mei();
    MeiHead meiHead = new MeiHead();
    FileDesc fileDesc = new FileDesc();
    TitleStmt titleStmt = new TitleStmt();
    Title title = new Title();
    title.getContent().add("New MEI-2013 document");
    titleStmt.getTitles().add(title);
    fileDesc.setTitleStmt(titleStmt);
    PubStmt pubStmt = new PubStmt();
    fileDesc.setPubStmt(pubStmt);
    SourceDesc sourceDesc = new SourceDesc();
View Full Code Here

   */
  public static Mei createDefaultMeiTree(int stavesCount, int measureCount) {
    Mei mei = new Mei();
    MeiHead meiHead = new MeiHead();
    FileDesc fileDesc = new FileDesc();
    TitleStmt titleStmt = new TitleStmt();
    Title title = new Title();
    title.getContent().add("New MEI-2013 document");
    titleStmt.getTitles().add(title);
    fileDesc.setTitleStmt(titleStmt);
    PubStmt pubStmt = new PubStmt();
    fileDesc.setPubStmt(pubStmt);
    SourceDesc sourceDesc = new SourceDesc();
    Source source = new Source();
View Full Code Here

      }
    } else {
      boolean verseAlreadyContained = false;
      Syl newSyl = new Syl();
      newSyl.getContent().add(0, newString);
      Verse verse = new Verse();
      for (Object contentElement : getNote()
          .getDamagesAndSylsAndCorrs()) {
        if (contentElement instanceof Verse) {
          verse = ((Verse) contentElement);
          verseAlreadyContained = true;
          break;
        }
      }
      if (!verseAlreadyContained) {
        getNote().getDamagesAndSylsAndCorrs().add(verse);
      }
      verse.getSyls().clear();
      verse.getSyls().add(newSyl);
    }
  }
View Full Code Here

        return response;
    }

    private Role toModel(RoleData model) {
        Role role = new Role();
        role.id = "" + model.getId();
        role.name = model.getName();
        // if (model.hasDescription()) {
        // role.description = model.getDescription();
        // }
View Full Code Here

        return response;
    }

    private Role toModel(RoleData data) {
        Role role = new Role();
        role.id = "" + data.getId();
        role.name = data.getName();
        return role;
    }
View Full Code Here

                RoleData role = identityService.findRole(roleId);
                if (role == null) {
                    throw new IllegalStateException();
                }

                Role model = toModel(project, role);
                user.roles.add(model);
            }
        }

        log.info("Returning auth: {}", response);
View Full Code Here

        return Lists.newArrayList(v2Endpoints.values());
    }

    private Role toModel(ProjectData project, RoleData role) {
        Role model = new Role();
        model.id = "" + role.getId();
        model.name = role.getName();
        if (project != null) {
            model.tenantId = "" + project.getId();
        }
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.mei2013.Role

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.