Package javax.jmi.reflect

Examples of javax.jmi.reflect.RefObject.refGetValue()


    {
      RefObject stereotypeElement = (RefObject)iter.next();
      //System.out.println( " stereotype check '" + stereotypeElement.refGetValue("baseClass") + "'" );
      if(stereotypeName.equals(stereotypeElement.refGetValue("name")))
      {
        Collection baseClasses = (Collection)stereotypeElement.refGetValue("baseClass");
        // Also check the baseClass
        if(baseClasses.contains(baseClass))
        {
          return stereotypeElement;
        }
View Full Code Here


    catch(InstantiationException ex)
    {
      throw new ModelException(ex);
    }
    stereotype.refSetValue("name", stereotypeName);
    Collection baseClasses = (Collection)stereotype.refGetValue("baseClass");
    baseClasses.add(baseClass);
    // Attach stereotype to first model, if any
    Collection models = getAllOfClass("Model_Management.Model");
    if(models.size()>0)
    {
View Full Code Here

                                         String attributeName)
    throws ModelException
  {
    RefObject modelElement = getStereotype(object, stereotype);

    Collection tagValues = (Collection)modelElement.refGetValue("taggedValue");
    Iterator iter = tagValues.iterator();
    while(iter.hasNext())
    {
      RefObject tag = (RefObject)iter.next();
      RefObject tagDef = (RefObject)tag.refGetValue("type");
View Full Code Here

      if(tagStereotype==null)
      {
        continue;
      }
      String tagName = (String)tagDef.refGetValue("tagType");
      String sterotypeName = (String)tagStereotype.refGetValue("baseClass");

      if(attributeName.equals(tagName)&&stereotype.equals(stereotype))
      {
        return tag.refGetValue("dataValue");
      }
View Full Code Here

     * @return Object
     */
    public Object next()
    {
      RefObject stereotype = (RefObject)namesIter.next();
      return stereotype.refGetValue("name");
    }

  }

  /**
 
View Full Code Here

      Iterator iter = connections.iterator();
      while(iter.hasNext())
      {
        // Get the AssociationEnd
        RefObject end = (RefObject)iter.next();
        if(firstEnd==end.refGetValue("participant"))
        {
          return true;
        }
      }
      // nothing found
View Full Code Here

     */
    public Object returnedValue(Object object)
    {
      RefObject assoc = (RefObject)object;

      List connections = (List)assoc.refGetValue("connection");
      Iterator iter = connections.iterator();
      while(iter.hasNext())
      {
        // Get the AssociationEnd
        RefObject end = (RefObject)((RefObject)iter.next()).refGetValue("participant");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.