def GetUcsPropertyMetaAttributeList(classId): """ Methods returns the class meta. """ if classId in _ManagedObjectMeta.keys(): attrList = _ManagedObjectMeta[classId].keys() attrList.remove("Meta") return attrList if classId in _MethodFactoryMeta.keys(): attrList = _MethodFactoryMeta[classId].keys() attrList.remove("Meta") return attrList #If the case of classId is not as in Meta nci = UcsUtils.FindClassIdInMoMetaIgnoreCase(classId) if (nci != None): attrList = _ManagedObjectMeta[nci].keys() attrList.remove("Meta") return attrList nci = UcsUtils.FindClassIdInMethodMetaIgnoreCase(classId) if (nci != None): attrList = _MethodFactoryMeta[nci].keys() attrList.remove("Meta") return attrList return None
def IsPropertyInMetaIgnoreCase(classId, key): if classId in _ManagedObjectMeta.keys(): for prop in _ManagedObjectMeta[classId].keys(): if (prop.lower() == key.lower()): return _ManagedObjectMeta[classId][prop] if classId in _MethodFactoryMeta.keys(): for prop in _MethodFactoryMeta[classId].keys(): if (prop.lower() == key.lower()): return _MethodFactoryMeta[classId][prop] return None
def IsPropertyInMetaIgnoreCase(classId, key): """ Methods returns the property meta of the provided key for the given classId. Given key is case insensitive. """ if classId in _ManagedObjectMeta.keys(): for prop in _ManagedObjectMeta[classId].keys(): if (prop.lower() == key.lower()): return _ManagedObjectMeta[classId][prop] if classId in _MethodFactoryMeta.keys(): for prop in _MethodFactoryMeta[classId].keys(): if (prop.lower() == key.lower()): return _MethodFactoryMeta[classId][prop] return None
def FindClassIdInMoMetaIgnoreCase(classId): """ Methods whether classId is valid or not . Given class is case insensitive. """ if not classId: return None if classId in _ManagedObjectMeta: return classId lClassId = classId.lower() for key in _ManagedObjectMeta.keys(): if (key.lower() == lClassId): return key return None
def GetUcsPropertyMetaAttributeList(classId): if classId in _ManagedObjectMeta.keys(): attrList = _ManagedObjectMeta[classId].keys() attrList.remove("Meta") return attrList if classId in _MethodFactoryMeta.keys(): attrList = _MethodFactoryMeta[classId].keys() attrList.remove("Meta") return attrList #If the case of classId is not as in Meta nci = UcsUtils.FindClassIdInMoMetaIgnoreCase(classId) if (nci != None): attrList = _ManagedObjectMeta[nci].keys() attrList.remove("Meta") return attrList nci = UcsUtils.FindClassIdInMethodMetaIgnoreCase(classId) if (nci != None): attrList = _MethodFactoryMeta[nci].keys() attrList.remove("Meta") return attrList return None
def GetUcsPropertyMeta(classId, key): """ Methods returns the property meta of the provided key for the given classId. """ if classId in _ManagedObjectMeta.keys(): if key in _ManagedObjectMeta[classId].keys(): return _ManagedObjectMeta[classId][key] return None
def IsValidClassId(classId): """ Methods checks whether the provided classId is valid or not. """ if ((classId in _ManagedObjectMeta.keys()) or (classId in _MethodFactoryMeta.keys())): return True return False
def FindClassIdInMoMetaIgnoreCase(classId): for key in _ManagedObjectMeta.keys(): if (key.lower() == classId.lower()): return key return None
def GetUcsPropertyMeta(classId, key): if classId in _ManagedObjectMeta.keys(): if key in _ManagedObjectMeta[classId].keys(): return _ManagedObjectMeta[classId][key] return None
def IsValidClassId(classId): if ((classId in _ManagedObjectMeta.keys()) or (classId in _MethodFactoryMeta.keys())): return True return False