Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.storyboards.util;
  
  
  {
    public StoryboardStepPO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public StoryboardStepPO(StoryboardStep... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
    public StoryboardStepSet allMatches()
    {
       this.setDoAllMatches(true);
       
       StoryboardStepSet matches = new StoryboardStepSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((StoryboardStepthis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
    
    public StoryboardStepPO hasText(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public String getText()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((StoryboardStepgetCurrentMatch()).getText();
       }
       return null;
    }
    
    public StoryboardStepPO withText(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((StoryboardStepgetCurrentMatch()).setText(value);
       }
       return this;
    }
    
    public StoryboardPO hasStoryboard()
    {
       StoryboardPO result = new StoryboardPO(new org.sdmlib.storyboards.Storyboard[]{});
       result.setModifier(this.getPattern().getModifier());
       
       super.hasLink(.result);
       
       return result;
    }
 
    {
    }
 
    public Storyboard getStoryboard()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((StoryboardStepthis.getCurrentMatch()).getStoryboard();
       }
       return null;
    }
 
    public StoryboardStepPO hasText(String lowerString upper)
    {
       new AttributeConstraint()
       .withTgtValue(lower)
       .withUpperTgtValue(upper)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public StoryboardStepPO createText(String value)
   {
      this.startCreate().hasText(value).endCreate();
      return this;
   }
   
   {
      return this.startCreate().hasStoryboard().endCreate();
   }
   {
      return this.startCreate().hasStoryboard(tgt).endCreate();
   }
New to GrepCode? Check out our FAQ X