Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.replication.util;
  
  import java.net.Socket;
  
  
 {
 
     public ReplicationChannelSet allMatches()
    {
       this.setDoAllMatches(true);
       
       ReplicationChannelSet matches = new ReplicationChannelSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((ReplicationChannelthis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
 
 
    public ReplicationChannelPO(){
       newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public ReplicationChannelPO(ReplicationChannel... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
    public ReplicationChannelPO hasSocket(Socket value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public ReplicationChannelPO createSocket(Socket value)
    {
       this.startCreate().hasSocket(value).endCreate();
       return this;
    }
    
    public Socket getSocket()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((ReplicationChannelgetCurrentMatch()).getSocket();
       }
       return null;
    }
    
    public ReplicationChannelPO withSocket(Socket value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((ReplicationChannelgetCurrentMatch()).setSocket(value);
       }
       return this;
    }
    
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public ReplicationChannelPO 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 ((ReplicationChannelgetCurrentMatch()).getTargetNodeId();
      }
      return null;
   }
   
   {
      if (this.getPattern().getHasMatch())
      {
         ((ReplicationChannelgetCurrentMatch()).setTargetNodeId(value);
      }
      return this;
   }
   
   {
      SharedSpacePO result = new SharedSpacePO(new SharedSpace[]{});
      
      result.setModifier(this.getPattern().getModifier());
      
      return result;
   }
   {
      return this.startCreate().hasSharedSpace().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasSharedSpace(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ReplicationChannelthis.getCurrentMatch()).getSharedSpace();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X