/** @return metaclass */ public MetaClass getStereotypeMetaClass() throws DbException { if (stereotypeMetaClass == null) { stereotypeMetaClass = MetaClass.find(getMetaClassName()); if (stereotypeMetaClass == null) return DbSMSSemanticalObject.metaClass; } return stereotypeMetaClass; }
private ObjectScope getObjectScope(ObjectScope[] scope, String metaclassname) { MetaClass metaclass = MetaClass.find(metaclassname); if (metaclass == null) // obsolete metaClass return null; for (int i = 0; i < scope.length; i++) { if (scope[i].metaClass == metaclass) return scope[i]; } return null; }
private MetaClass getChildrenMetaClass() { MetaClass childrenMetaClass = m_childrenMetaClass; if (childrenMetaClass == null) { m_childrenMetaClass = MetaClass.find(sChildrenMetaClass); childrenMetaClass = m_childrenMetaClass; } return childrenMetaClass; }