Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sdmlib.replication.util;
 
 
 public class TaskPO extends PatternObject<TaskPOTask>
 {
 
    public TaskSet allMatches()
   {
      this.setDoAllMatches(true);
      
      TaskSet matches = new TaskSet();
      while (this.getPattern().getHasMatch())
      {
         matches.add((Taskthis.getCurrentMatch());
         
         this.getPattern().findMatch();
      }
      
      return matches;
   }
   public TaskPO(){
      newInstance(CreatorCreator.createIdMap("PatternObjectType"));
   }
   public TaskPO(Task... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
   public LogEntryPO hasLogEntries()
   {
      LogEntryPO result = new LogEntryPO(new LogEntry[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasLogEntries().endCreate();
   }
   public TaskPO hasLogEntries(LogEntryPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   public TaskPO createLogEntries(LogEntryPO tgt)
   {
      return this.startCreate().hasLogEntries(tgt).endCreate();
   }
   public LogEntrySet getLogEntries()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Taskthis.getCurrentMatch()).getLogEntries();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X