int EntityRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "class") { return -1; } return m_builder->isTask(desc->getParents().front()) ? -1 : 0; }
int PropertyRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "type") { return -1; } return 0; }
int ArchetypeRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "archetype") { return -1; } return 0; }
int OpRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "op_definition") { return -1; } return 0; }
int EntityRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "class") { return -1; } return 0; }