Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.replication.util;
  
  import java.net.Socket;
  
 
 {
 
     public SharedSpaceSet allMatches()
    {
       this.setDoAllMatches(true);
       
       SharedSpaceSet matches = new SharedSpaceSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((SharedSpacethis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public SharedSpacePO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public SharedSpacePO(SharedSpace... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public SharedSpacePO hasSocket(Socket value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public SharedSpacePO createSocket(Socket value)
    {
       this.startCreate().hasSocket(value).endCreate();
       return this;
    }
    
    public Socket getSocket()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((SharedSpacegetCurrentMatch()).getSocket();
       }
       return null;
    }
    
    public SharedSpacePO withSocket(Socket value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((SharedSpacegetCurrentMatch()).setSocket(value);
       }
       return this;
    }
    
    public SharedSpacePO hasTargetNodeId(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public SharedSpacePO hasTargetNodeId(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().hasTargetNodeId(value).endCreate();
      return this;
   }
   
   public String getTargetNodeId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacegetCurrentMatch()).getTargetNodeId();
      }
      return null;
   }
   
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).setTargetNodeId(value);
      }
      return this;
   }
   
   public ReplicationNodePO hasNode()
   {
      ReplicationNodePO result = new ReplicationNodePO(new ReplicationNode[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasNode().endCreate();
   }
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasNode(tgt).endCreate();
   }
   public ReplicationNode getNode()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacethis.getCurrentMatch()).getNode();
      }
      return null;
   }
   {
      ReplicationChannelPO result = new ReplicationChannelPO(new ReplicationChannel[]{});
      
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      
      return result;
   }
   {
      return this.startCreate().hasChannels().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasChannels(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacethis.getCurrentMatch()).getChannels();
      }
      return null;
   }
   public SharedSpacePO hasSpaceId(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SharedSpacePO 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 SharedSpacePO createSpaceId(String value)
   {
      this.startCreate().hasSpaceId(value).endCreate();
      return this;
   }
   
   public String getSpaceId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacegetCurrentMatch()).getSpaceId();
      }
      return null;
   }
   
   public SharedSpacePO withSpaceId(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).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 ((SharedSpacegetCurrentMatch()).getHistory();
      }
      return null;
   }
   
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).setHistory(value);
      }
      return this;
   }
   
   public SharedSpacePO hasLastChangeId(long value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SharedSpacePO 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 SharedSpacePO createLastChangeId(long value)
   {
      this.startCreate().hasLastChangeId(value).endCreate();
      return this;
   }
   
   public long getLastChangeId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacegetCurrentMatch()).getLastChangeId();
      }
      return 0;
   }
   
   public SharedSpacePO withLastChangeId(long value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).setLastChangeId(value);
      }
      return this;
   }
   
   public SharedSpacePO hasNodeId(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SharedSpacePO hasNodeId(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SharedSpacePO createNodeId(String value)
   {
      this.startCreate().hasNodeId(value).endCreate();
      return this;
   }
   
   public String getNodeId()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacegetCurrentMatch()).getNodeId();
      }
      return null;
   }
   
   public SharedSpacePO withNodeId(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).setNodeId(value);
      }
      return this;
   }  
   public SharedSpacePO hasJavaFXApplication(boolean value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SharedSpacePO createJavaFXApplication(boolean value)
   {
      this.startCreate().hasJavaFXApplication(value).endCreate();
      return this;
   }
   
   public boolean getJavaFXApplication()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SharedSpacegetCurrentMatch()).isJavaFXApplication();
      }
      return false;
   }
   
   public SharedSpacePO withJavaFXApplication(boolean value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SharedSpacegetCurrentMatch()).setJavaFXApplication(value);
      }
      return this;
   }
   
New to GrepCode? Check out our FAQ X