org.sdmlib.replication.util.SocketPO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SDMLib Show documentation
Show all versions of SDMLib Show documentation
SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.
package org.sdmlib.replication.util;
import java.net.Socket;
import org.sdmlib.models.pattern.PatternObject;
public class SocketPO extends PatternObject
{
public SocketSet allMatches()
{
this.setDoAllMatches(true);
SocketSet matches = new SocketSet();
while (this.getPattern().getHasMatch())
{
matches.add((Socket) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public SocketPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public SocketPO(Socket... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy