Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.models.pattern.util;
  
  
 {
    public PatternElementPO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public PatternElementPO(PatternElement... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
    public PatternElementPO hasModifier(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public PatternElementPO withModifier(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((PatternElementgetCurrentMatch()).withModifier(value);
       }
       return this;
    }
    
    public PatternElementPO hasHasMatch(boolean value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public PatternElementPO withHasMatch(boolean value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((PatternElementgetCurrentMatch()).withHasMatch(value);
       }
       return this;
    }
    
    public PatternPO hasPattern()
    {
       PatternPO result = new PatternPO();
       
       PatternLink patternLink = new PatternLink()
       .withSrc(this);
       
       this.getPattern().addToElements(patternLink);
       
       this.getPattern().addToElements(result);
       
       this.getPattern().findMatch();
       
       return result;
    }
    
    public PatternElementPO hasPattern(PatternPO tgt)
    {
    }
    
    public PatternElementPO withPattern(PatternPO tgtPO)
    {
       if (this.getPattern().getHasMatch())
       {
          ((PatternElementthis.getCurrentMatch()).withPattern((PatterntgtPO.getCurrentMatch());
       }
       return this;
    }
    
    public String getModifier()
    {
       if (this.getPattern().getHasMatch())
       {
         return ((PatternElementgetCurrentMatch()).getModifier();
      }
      return null;
   }
   
   public boolean getHasMatch()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((PatternElementgetCurrentMatch()).getHasMatch();
      }
      return false;
   }
   
   public Pattern getPattern()
   {
      if (super.getPattern().getHasMatch())
      {
         return ((PatternElementthis.getCurrentMatch()).getPattern();
      }
      return super.getPattern();
   }
   
   public PatternElementPO hasDoAllMatches(boolean value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public boolean getDoAllMatches()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((PatternElementgetCurrentMatch()).getDoAllMatches();
      }
      return false;
   }
   
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   {
      if (this.getPattern().getHasMatch())
      {
         return ((PatternElementgetCurrentMatch()).getPatternObjectName();
      }
      return null;
   }
   
   public PatternElementPO hasModifier(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public PatternElementPO hasHasMatch(boolean lowerboolean upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public PatternElementPO hasPatternObjectName(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public PatternElementPO hasDoAllMatches(boolean lowerboolean upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   {
      this.startCreate().hasModifier(value).endCreate();
      return this;
   }
   
   public PatternElementPO createHasMatch(boolean value)
   {
      this.startCreate().hasHasMatch(value).endCreate();
      return this;
   }
   
   {
      this.startCreate().hasPatternObjectName(value).endCreate();
      return this;
   }
   
   public PatternElementPO createDoAllMatches(boolean value)
   {
      this.startCreate().hasDoAllMatches(value).endCreate();
      return this;
   }
   
   public PatternPO createPattern()
   {
      return (PatternPOthis.startCreate().hasPattern().endCreate();
   }
   {
      return this.startCreate().hasPattern(tgt).endCreate();
   }
New to GrepCode? Check out our FAQ X