org.dmd.dms.RuleCategory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dark-matter-data Show documentation
Show all versions of dark-matter-data Show documentation
The dark-matter project provides mechanism to define concepts associated with Domain Specific Languages (DSLs) and generate code that can be extended with business logic that supports the given DSL purpose.
package org.dmd.dms;
import org.dmd.dmc.DmcValueException;
import org.dmd.dms.generated.dmo.RuleCategoryDMO;
import org.dmd.dms.generated.dmw.RuleCategoryDMW;
import org.dmd.dms.generated.enums.OperationalContextEnum;
public class RuleCategory extends RuleCategoryDMW {
public RuleCategory(){
super(new RuleCategoryDMO(), MetaSchemaAG._RuleCategory);
}
public RuleCategory(RuleCategoryDMO obj){
super(obj);
}
protected RuleCategory(String mn) throws DmcValueException{
super(mn);
}
public String getRuleInterface(){
String rc = null;
if (getOpContext() == OperationalContextEnum.DMO){
rc = getDefinedIn().getSchemaPackage() + ".generated.rulesdmo." + getName() + "IF";
}
else{
rc = getDefinedIn().getDmwPackage() + ".generated.rulesdmw." + getName() + "IF";
}
return(rc);
}
}