Examples of MeiNode


Examples of info.textgrid.lab.noteeditor.model.MeiNode

   * sets a meiNode for the new Form.
   * the id field is being deleted (overwritten by null) for avoiding id collisions.
   * @param meiNode
   */
  public void setMeiNode(MeiNode original) {
    MeiNode meiNode = (MeiNode) original.clone();
    if(child != null) {
      Class<? extends MeiNode> myClass = meiNode.getClass();
      Method[] declaredMethodsArray = myClass.getDeclaredMethods();
      boolean hasId = false;
      for (int i = 0; i < declaredMethodsArray.length; i++) {
        if (declaredMethodsArray[i].getName().equals("getId")) {
          hasId = true;
View Full Code Here

Examples of info.textgrid.lab.noteeditor.model.MeiNode

      if (contentNode.isSetN() && contentNode.getN().isEmpty())
        contentNode.setN(null);
      if (!saveAllVariants) {
        for (BasicElement contentChildForm : contentForm.getChildren()) {
          if(contentChildForm instanceof ReadingForm && ((ReadingForm)contentChildForm).isActive() ) {
            MeiNode parentMeiNode = contentForm.getParent().getMeiNode();
            for(BasicElement grandChild : ((ReadingForm)contentChildForm).getChildren()){
              MeiNodeNavigator.addMeiNodeAsChild(parentMeiNode, grandChild.getMeiNode());
            }           
          }
        }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.model.MeiNode

    DynamForm dynamForm = new DynamForm();
    dynamForm.setParent(parentForm);
    dynamForm.setMeiNode(dynam);
    for (Object childObject : dynam.getContent()) {
      if (childObject instanceof MeiNode) {
        MeiNode child = (MeiNode) childObject;
        BasicElement handleLayerContent = handleMeiElement(child,
            dynamForm);
        if (handleLayerContent != null)
          dynamForm.addChild(handleLayerContent);
      } else {
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.