Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.replication.util;
  
  
  public class SeppelScopePO extends PatternObject<SeppelScopePOSeppelScope>
  {
 
     public SeppelScopeSet allMatches()
    {
       this.setDoAllMatches(true);
       
       SeppelScopeSet matches = new SeppelScopeSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((SeppelScopethis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public SeppelScopePO(){
       newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public SeppelScopePO(SeppelScope... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public SeppelScopePO hasScopeName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public SeppelScopePO hasScopeName(String lowerString upper)
    {
       new AttributeConstraint()
       .withTgtValue(lower)
       .withUpperTgtValue(upper)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public SeppelScopePO createScopeName(String value)
    {
       this.startCreate().hasScopeName(value).endCreate();
       return this;
    }
    
    public String getScopeName()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((SeppelScopegetCurrentMatch()).getScopeName();
       }
       return null;
    }
    
    public SeppelScopePO withScopeName(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((SeppelScopegetCurrentMatch()).setScopeName(value);
       }
       return this;
    }
    
    public SeppelScopePO hasSubScopes()
    {
       SeppelScopePO result = new SeppelScopePO(new SeppelScope[]{});
       
       result.setModifier(this.getPattern().getModifier());
       super.hasLink(.result);
       
       return result;
    }
   {
      return this.startCreate().hasSubScopes().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasSubScopes(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SeppelScopethis.getCurrentMatch()).getSubScopes();
      }
      return null;
   }
   {
      SeppelScopePO result = new SeppelScopePO(new SeppelScope[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasSuperScopes().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasSuperScopes(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SeppelScopethis.getCurrentMatch()).getSuperScopes();
      }
      return null;
   }
   {
      SeppelSpaceProxyPO result = new SeppelSpaceProxyPO(new SeppelSpaceProxy[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasSpaces().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasSpaces(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SeppelScopethis.getCurrentMatch()).getSpaces();
      }
      return null;
   }
   {
      ObjectPO result = new ObjectPO(new java.lang.Object[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasObservedObjects().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasObservedObjects(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SeppelScopethis.getCurrentMatch()).getObservedObjects();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X