1 Reply Latest reply: Jun 4, 2003 2:07 AM by 843853 RSS

    How to add an Attribute to Class in JMI?

    843853
      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
        • 1. Re: How to add an Attribute to Class in JMI?
          843853
          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