Examples of refGetValue()


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

    RefObject ref = (RefObject)bean;
    RefObject descriptor = ref.refMetaObject();
    // Lookup the property descriptor.
    // Lookup the attribute with the requested name,
    // return the type pointed by the attribute.
    Iterator propertyIter = ((Collection)descriptor.refGetValue("contents")).iterator();
    while(propertyIter.hasNext())
    {
      RefObject attribute = (RefObject)propertyIter.next();
      if( propertyName.equals( attribute.refGetValue( "name" ) ) )
      {
View Full Code Here

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

    // return the type pointed by the attribute.
    Iterator propertyIter = ((Collection)descriptor.refGetValue("contents")).iterator();
    while(propertyIter.hasNext())
    {
      RefObject attribute = (RefObject)propertyIter.next();
      if( propertyName.equals( attribute.refGetValue( "name" ) ) )
      {
        return (RefObject)attribute.refGetValue("type");
      }
    }
View Full Code Here

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

    while(propertyIter.hasNext())
    {
      RefObject attribute = (RefObject)propertyIter.next();
      if( propertyName.equals( attribute.refGetValue( "name" ) ) )
      {
        return (RefObject)attribute.refGetValue("type");
      }
    }

    throw new NotFoundException("No property '" + propertyName + "' in '" + descriptor.getClass().getName() + "'.");
  }
View Full Code Here

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

    //System.out.println("metaclass.refOutermostPackage()='" + metaclass.refOutermostPackage().getClass().getName() + "'." );
    while( parent !=null  )
    {
      //System.out.println("metaclass.refOutermostPackage()='" + metaclass.refOutermostPackage().getClass().getName() + "'." );
      //System.out.println("parent='" + parent.getClass().getName() + "'." );
      String name = (String)parent.refGetValue("name");

      // Don't put the last one
      parent = (RefObject)parent.refGetValue("container" );
      if( parent == null )
        break;
View Full Code Here

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

      //System.out.println("metaclass.refOutermostPackage()='" + metaclass.refOutermostPackage().getClass().getName() + "'." );
      //System.out.println("parent='" + parent.getClass().getName() + "'." );
      String name = (String)parent.refGetValue("name");

      // Don't put the last one
      parent = (RefObject)parent.refGetValue("container" );
      if( parent == null )
        break;
      //System.out.println("add '" + name + "'." );
      res.addname );
    }
View Full Code Here

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

   */
  protected RefObject getStereotype(Object object, String stereotype)
  {
    RefObject modelElement = (RefObject)object;

    Collection stereotypes = (Collection)modelElement.refGetValue("stereotype");
    return lookupStereotype(stereotypes, stereotype);
  }

  /**
   * Lookup for the specified Stereotype in the provided list of stereotype.
View Full Code Here

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

    Iterator iter = stereotypes.iterator();
    while(iter.hasNext())
    {
      RefObject stereotypeElement = (RefObject)iter.next();
      //System.out.println( " stereotype check '" + stereotypeElement.refGetValue("baseClass") + "'" );
      if(stereotype.equals(stereotypeElement.refGetValue("name")))
      {
        return stereotypeElement;
      }
    } // end loop
View Full Code Here

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

   */
  public Collection getStereotypes(Object object)
  {
    RefObject modelElement = (RefObject)object;

    Collection stereotypes = (Collection)modelElement.refGetValue("stereotype");
    return new StereotypeNamesCollection(object, stereotypes);
  }

  /**
   * Add the specified stereotype to the specified bean.
View Full Code Here

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

  protected void addStereotype(Object object, String stereotype)
    throws ModelException
  {
    RefObject modelElement = (RefObject)object;

    Collection currentStereotypes = (Collection)modelElement.refGetValue("stereotype");
    // Check if it already exist as registered to object.
    if(lookupStereotype(currentStereotypes, stereotype)!=null)
    {
      return;
    }
View Full Code Here

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

    Iterator iter = registeredStereotypes.iterator();
    while(iter.hasNext())
    {
      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))
        {
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.