All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sdmlib.storyboards.util.LogEntryStoryBoardPO Maven / Gradle / Ivy

Go to download

SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.

There is a newer version: 2.3.2341
Show newest version
package org.sdmlib.storyboards.util;

import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.storyboards.LogEntryStoryBoard;
import org.sdmlib.storyboards.util.KanbanEntryPO;
import org.sdmlib.storyboards.KanbanEntry;
import org.sdmlib.storyboards.util.LogEntryStoryBoardPO;

public class LogEntryStoryBoardPO extends PatternObject
{

    public LogEntryStoryBoardSet allMatches()
   {
      this.setDoAllMatches(true);
      
      LogEntryStoryBoardSet matches = new LogEntryStoryBoardSet();

      while (this.getPattern().getHasMatch())
      {
         matches.add((LogEntryStoryBoard) this.getCurrentMatch());
         
         this.getPattern().findMatch();
      }
      
      return matches;
   }


   public LogEntryStoryBoardPO(){
      newInstance(org.sdmlib.storyboards.util.CreatorCreator.createIdMap("PatternObjectType"));
   }

   public LogEntryStoryBoardPO(LogEntryStoryBoard... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(org.sdmlib.storyboards.util.CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
   public KanbanEntryPO hasKanbanEntry()
   {
      KanbanEntryPO result = new KanbanEntryPO(new KanbanEntry[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(LogEntryStoryBoard.PROPERTY_KANBANENTRY, result);
      
      return result;
   }

   public KanbanEntryPO createKanbanEntry()
   {
      return this.startCreate().hasKanbanEntry().endCreate();
   }

   public LogEntryStoryBoardPO hasKanbanEntry(KanbanEntryPO tgt)
   {
      return hasLinkConstraint(tgt, LogEntryStoryBoard.PROPERTY_KANBANENTRY);
   }

   public LogEntryStoryBoardPO createKanbanEntry(KanbanEntryPO tgt)
   {
      return this.startCreate().hasKanbanEntry(tgt).endCreate();
   }

   public KanbanEntry getKanbanEntry()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((LogEntryStoryBoard) this.getCurrentMatch()).getKanbanEntry();
      }
      return null;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy