Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.replication.util;
  
  
 {
 
     public ReplicationNodeSet allMatches()
    {
       this.setDoAllMatches(true);
       
       ReplicationNodeSet matches = new ReplicationNodeSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((ReplicationNodethis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public ReplicationNodePO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public ReplicationNodePO(ReplicationNode... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public ReplicationNodePO hasSpaceId(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public ReplicationNodePO hasSpaceId(String lowerString upper)
    {
       new AttributeConstraint()
       .withTgtValue(lower)
       .withUpperTgtValue(upper)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public ReplicationNodePO createSpaceId(String value)
    {
       this.startCreate().hasSpaceId(value).endCreate();
       return this;
    }
    
    public String getSpaceId()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((ReplicationNodegetCurrentMatch()).getSpaceId();
       }
       return null;
    }
    
    public ReplicationNodePO withSpaceId(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((ReplicationNodegetCurrentMatch()).setSpaceId(value);
       }
       return this;
    }
    
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   {
      this.startCreate().hasHistory(value).endCreate();
      return this;
   }
   
   public ChangeHistory getHistory()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationNodegetCurrentMatch()).getHistory();
      }
      return null;
   }
   
   {
      if (this.getPattern().getHasMatch())
      {
         ((ReplicationNodegetCurrentMatch()).setHistory(value);
      }
      return this;
   }
   
   public ReplicationNodePO hasLastChangeId(long value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public ReplicationNodePO hasLastChangeId(long lowerlong upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public ReplicationNodePO createLastChangeId(long value)
   {
      this.startCreate().hasLastChangeId(value).endCreate();
      return this;
   }
   
   public long getLastChangeId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationNodegetCurrentMatch()).getLastChangeId();
      }
      return 0;
   }
   
   public ReplicationNodePO withLastChangeId(long value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((ReplicationNodegetCurrentMatch()).setLastChangeId(value);
      }
      return this;
   }
   
   public ReplicationNodePO hasNodeId(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public ReplicationNodePO hasNodeId(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   {
      this.startCreate().hasNodeId(value).endCreate();
      return this;
   }
   
   public String getNodeId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationNodegetCurrentMatch()).getNodeId();
      }
      return null;
   }
   
   public ReplicationNodePO withNodeId(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((ReplicationNodegetCurrentMatch()).setNodeId(value);
      }
      return this;
   }
   
   public ReplicationNodePO hasJavaFXApplication(boolean value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public ReplicationNodePO createJavaFXApplication(boolean value)
   {
      this.startCreate().hasJavaFXApplication(value).endCreate();
      return this;
   }
   
   public boolean getJavaFXApplication()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationNodegetCurrentMatch()).isJavaFXApplication();
      }
      return false;
   }
   
   public ReplicationNodePO withJavaFXApplication(boolean value)
   {
      if (this.getPattern().getHasMatch())
      {
      }
      return this;
   }
   
   {
      SharedSpacePO result = new SharedSpacePO(new SharedSpace[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasSharedSpaces().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasSharedSpaces(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationNodethis.getCurrentMatch()).getSharedSpaces();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X