Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.replication.util;
  
  
  public class LanePO extends PatternObject<LanePOLane>
 {
 
     public LaneSet allMatches()
    {
       this.setDoAllMatches(true);
       
       LaneSet matches = new LaneSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((Lanethis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public LanePO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public LanePO(Lane... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public LanePO hasName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public LanePO hasName(String lowerString upper)
    {
       new AttributeConstraint()
       .withTgtValue(lower)
       .withUpperTgtValue(upper)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public LanePO createName(String value)
    {
       this.startCreate().hasName(value).endCreate();
       return this;
    }
    
    public String getName()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((LanegetCurrentMatch()).getName();
       }
       return null;
    }
    
    public LanePO withName(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((LanegetCurrentMatch()).setName(value);
       }
       return this;
    }
    
    public RemoteTaskBoardPO hasBoard()
    {
       RemoteTaskBoardPO result = new RemoteTaskBoardPO(new RemoteTaskBoard[]{});
       
       result.setModifier(this.getPattern().getModifier());
       super.hasLink(.result);
       
       return result;
   }
   {
      return this.startCreate().hasBoard().endCreate();
   }
   public LanePO hasBoard(RemoteTaskBoardPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasBoard(tgt).endCreate();
   }
   public RemoteTaskBoard getBoard()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Lanethis.getCurrentMatch()).getBoard();
      }
      return null;
   }
   public BoardTaskPO hasTasks()
   {
      BoardTaskPO result = new BoardTaskPO(new BoardTask[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   public BoardTaskPO createTasks()
   {
      return this.startCreate().hasTasks().endCreate();
   }
   public LanePO hasTasks(BoardTaskPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   public LanePO createTasks(BoardTaskPO tgt)
   {
      return this.startCreate().hasTasks(tgt).endCreate();
   }
   public BoardTaskSet getTasks()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Lanethis.getCurrentMatch()).getTasks();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X