
org.sdmlib.serialization.util.JsonIdMapPO 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.serialization.util;
import org.sdmlib.models.pattern.PatternObject;
import de.uniks.networkparser.IdMap;
public class JsonIdMapPO extends PatternObject
{
public JsonIdMapPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public JsonIdMapPO(IdMap... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public JsonIdMapSet allMatches()
{
this.setDoAllMatches(true);
JsonIdMapSet matches = new JsonIdMapSet();
while (this.getPattern().getHasMatch())
{
matches.add((IdMap) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy