on 11-30-2004 9:10 AM
Hi All,
Is there any way to access the Enumeration of a simple type (create in the local dictionary) at runtime?
something like : MySimpleTypeName.SomeEnumarionName.
Thanks
Avihai.
Hi,
Is the simple type must be integrated with the context?.
Can I use it without dealing with the context?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The closest equivalent is:
final IWDAttributeInfo attr = <node>.getNodeInfo().getAttribute("<attr-name>");
final ISimpleType type = attr.getSimpleType();
final ISimpleValueServices svSrv = type.getSVServices();
final ISimpleValueSet svSet = svSrv.getValues();
Next you can query ISimpleValueSet for contained keys or key -> text mappings.
Hope this helps,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.