Esempio n. 1
0
	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
Esempio n. 2
0
	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
Esempio n. 3
0
 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
Esempio n. 4
0
	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
Esempio n. 5
0
 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
Esempio n. 6
0
	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
Esempio n. 7
0
    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
Esempio n. 8
0
	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
Esempio n. 9
0
	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
Esempio n. 10
0
	def FindClassIdInMoMetaIgnoreCase(classId):
		for key in _ManagedObjectMeta.keys():
			if (key.lower() == classId.lower()):
				return key
		return None
Esempio n. 11
0
	def GetUcsPropertyMeta(classId, key):
		if classId in _ManagedObjectMeta.keys():
			if key in _ManagedObjectMeta[classId].keys():
				return _ManagedObjectMeta[classId][key]
		return None
Esempio n. 12
0
	def IsValidClassId(classId):
		if ((classId in _ManagedObjectMeta.keys()) or (classId in _MethodFactoryMeta.keys())):
			return True
		return False
Esempio n. 13
0
 def FindClassIdInMoMetaIgnoreCase(classId):
     for key in _ManagedObjectMeta.keys():
         if (key.lower() == classId.lower()):
             return key
     return None
Esempio n. 14
0
 def GetUcsPropertyMeta(classId, key):
     if classId in _ManagedObjectMeta.keys():
         if key in _ManagedObjectMeta[classId].keys():
             return _ManagedObjectMeta[classId][key]
     return None
Esempio n. 15
0
 def IsValidClassId(classId):
     if ((classId in _ManagedObjectMeta.keys())
             or (classId in _MethodFactoryMeta.keys())):
         return True
     return False