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