How to add an Attribute to Class in JMI?

In JMI specification (JSR-040), I still don't understand how we add attribute and/or method objects to a class object. Any clue? Please respond and cc me at mcgyver@writeme.com.Thanks,Mac
[216 byte] By [weerasak] at [2007-9-27 1:55:29]
# 1

Hi Mac,

I just had a fast look at the code but if i understand it correctly you use the AttributeClass.CreateAtribute method to create an Attribute object. Get the content of the class (MofClass.gettContent) which corresponds to a Namespace object and use the Add method of the namespace object to append the new attribute.

Cheers,

Mark Schenk

msche at 2007-7-4 20:34:07 > top of Java-index,Other Topics,Java Community Process (JCP) Program...