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