Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.models.taskflows.util;
  
  
  public class LogEntryPO extends PatternObject<LogEntryPOLogEntry>
  {
 
     public LogEntrySet allMatches()
    {
       this.setDoAllMatches(true);
       
       LogEntrySet matches = new LogEntrySet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((LogEntrythis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public LogEntryPO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public LogEntryPO(LogEntry... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public LogEntryPO hasNodeName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public LogEntryPO hasNodeName(String lowerString upper)
    {
       new AttributeConstraint()
       .withTgtValue(lower)
       .withUpperTgtValue(upper)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public LogEntryPO createNodeName(String value)
    {
       this.startCreate().hasNodeName(value).endCreate();
       return this;
    }
    
    public String getNodeName()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((LogEntrygetCurrentMatch()).getNodeName();
       }
       return null;
    }
    
    public LogEntryPO withNodeName(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((LogEntrygetCurrentMatch()).setNodeName(value);
       }
       return this;
    }
    
    public LogEntryPO hasTaskName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
      this.getPattern().findMatch();
      
      return this;
   }
   
   public LogEntryPO hasTaskName(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public LogEntryPO createTaskName(String value)
   {
      this.startCreate().hasTaskName(value).endCreate();
      return this;
   }
   
   public String getTaskName()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((LogEntrygetCurrentMatch()).getTaskName();
      }
      return null;
   }
   
   public LogEntryPO withTaskName(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((LogEntrygetCurrentMatch()).setTaskName(value);
      }
      return this;
   }
   
   public LoggerPO hasLogger()
   {
      LoggerPO result = new LoggerPO(new Logger[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   public LoggerPO createLogger()
   {
      return this.startCreate().hasLogger().endCreate();
   }
   public LogEntryPO hasLogger(LoggerPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   public LogEntryPO createLogger(LoggerPO tgt)
   {
      return this.startCreate().hasLogger(tgt).endCreate();
   }
   public Logger getLogger()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((LogEntrythis.getCurrentMatch()).getLogger();
      }
      return null;
   }
   public LogEntryPO hasChildren()
   {
      LogEntryPO result = new LogEntryPO(new LogEntry[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   public LogEntryPO createChildren()
   {
      return this.startCreate().hasChildren().endCreate();
   }
   public LogEntryPO hasChildren(LogEntryPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasChildren(tgt).endCreate();
   }
   public LogEntrySet getChildren()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((LogEntrythis.getCurrentMatch()).getChildren();
      }
      return null;
   }
   public LogEntryPO hasParent()
   {
      LogEntryPO result = new LogEntryPO(new LogEntry[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   public LogEntryPO createParent()
   {
      return this.startCreate().hasParent().endCreate();
   }
   public LogEntryPO hasParent(LogEntryPO tgt)
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasParent(tgt).endCreate();
   }
   public LogEntry getParent()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((LogEntrythis.getCurrentMatch()).getParent();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X