oaManagedType
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaManagedType 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaManagedType 当前在 oapy 中可用的 Python 接口。
详细说明
The oaManagedType class is an enum wrapper class for managed enum values, which are comprised of oaTypeEnum (concrete type enum) and oaAbstractTypeEnum (abstract type enum) values。 See Enum Wrappers in the Programmers Guide for a discussion of enum wrappers。
构造函数
_base.oaManagedType()
obj = _base.oaManagedType()
_base.oaManagedType(valueIn)
obj = _base.oaManagedType(valueIn)
_base.oaManagedType(valueIn)
obj = _base.oaManagedType(valueIn)
_base.oaManagedType(name)
obj = _base.oaManagedType(name)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName() |
| ✅ | obj.isConcrete() |
| ✅ | obj.getAbstractType() |
| ✅ | obj.getConcreteType() |
| ✅ | obj.isValid(testType) |
| ✅ | obj.operator>(rhs) |
| ✅ | obj.operator==(rhs) |
| ✅ | obj.operator!=(rhs) |
方法说明
obj.getName()
绑定状态: 已绑定
Python 调用: obj.getName()
This function returns the name associated with this encapsulated oaManagedType object。
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.getName()
obj.isConcrete()
绑定状态: 已绑定
Python 调用: obj.isConcrete()
This function returns true if this managed type encapsulates a concrete enum type。
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.isConcrete()
obj.getAbstractType()
绑定状态: 已绑定
Python 调用: obj.getAbstractType()
This function returns the abstract type that this class represents。
异常
oacInvalidAbstractType: if this managed type represents a concrete type。
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.getAbstractType()
obj.getConcreteType()
绑定状态: 已绑定
Python 调用: obj.getConcreteType()
This function returns the concrete type that this class represents。
异常
oacInvalidConcreteType: if this managed type is not a concrete type。
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.getConcreteType()
obj.isValid(testType)
绑定状态: 已绑定
Python 调用: obj.isValid(testType)
This function returns true if the specified testType is a valid managed type。
参数
testType: The oaType that is being tested to determine whether or not it is a valid managed type。
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.isValid(testType)
obj.operator>(rhs)
绑定状态: 已绑定
Python 调用: obj.operator>(rhs)
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.operator>(rhs)
obj.operator==(rhs)
绑定状态: 已绑定
Python 调用: obj.operator==(rhs)
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.operator==(rhs)
obj.operator!=(rhs)
绑定状态: 已绑定
Python 调用: obj.operator!=(rhs)
Python 示例
from oapy._oa import _base
# assume obj is a oaManagedType
obj.operator!=(rhs)