
org.sdmlib.models.pattern.util.ConditionPO 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.models.pattern.util;
import org.sdmlib.models.pattern.PatternObject;
public class ConditionPO extends PatternObject
{
public ConditionSet allMatches()
{
this.setDoAllMatches(true);
ConditionSet matches = new ConditionSet();
while (this.getPattern().getHasMatch())
{
matches.add((Object) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public ConditionPO(){
newInstance(null);
}
public ConditionPO(Object... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(null, hostGraphObject);
}
public ConditionPO(String modifier)
{
this.setModifier(modifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy