Package javax.jmi.reflect

Examples of javax.jmi.reflect.RefObject


   */
  public Object getStereotypeTaggedValue(Object object, String stereotype,
                                         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");
      RefObject tagStereotype = (RefObject)tagDef.refGetValue("owner");
      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

     * @param object Object
     * @return boolean
     */
    public boolean isAllowed(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)iter.next();
        if(firstEnd==end.refGetValue("participant"))
        {
          return true;
        }
      }
      // nothing found
View Full Code Here

     * @param object Object
     * @return Object
     */
    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");

        if(firstEnd != end)
        {
          return end;
        }
View Full Code Here

TOP

Related Classes of javax.jmi.reflect.RefObject

Copyright © 2018 www.massapicom. 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.