Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sdmlib.models.classes.util;
 
 
 {
 
    public SDMLibClassSet allMatches()
   {
      this.setDoAllMatches(true);
      
      SDMLibClassSet matches = new SDMLibClassSet();
      while (this.getPattern().getHasMatch())
      {
         matches.add((SDMLibClassthis.getCurrentMatch());
         
         this.getPattern().findMatch();
      }
      
      return matches;
   }
   public SDMLibClassPO(){
      newInstance(CreatorCreator.createIdMap("PatternObjectType"));
   }
   public SDMLibClassPO(SDMLibClass... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
   public SDMLibClassPO hasName(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SDMLibClassPO 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 SDMLibClassPO createName(String value)
   {
      this.startCreate().hasName(value).endCreate();
      return this;
   }
   
   public String getName()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SDMLibClassgetCurrentMatch()).getName();
      }
      return null;
   }
   
   public SDMLibClassPO withName(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SDMLibClassgetCurrentMatch()).withName(value);
      }
      return this;
   }
   
New to GrepCode? Check out our FAQ X