Examples of Kite9ProcessingException


Examples of org.kite9.framework.common.Kite9ProcessingException

    } else if (t instanceof GenericArrayType) {
      return "array of " + getAlias(((GenericArrayType) t).getGenericComponentType());
    } else if (t instanceof TypeVariable<?>) {
      return t.toString();
    } else {
      throw new Kite9ProcessingException("Not handled yet");
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

    if (t instanceof Class<?>) {
      return getStereotype((Class<?>) t);
    } else if (t instanceof ParameterizedType) {
      return getStereotype((Class<?>) ((ParameterizedType) t).getRawType());
    } else {
      throw new Kite9ProcessingException("Not handled yet");
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      return ((Field)m2).getDeclaringClass();
    } else if (m2 instanceof Constructor<?>) {
      return ((Constructor<?>)m2).getDeclaringClass();
    }
   
    throw new Kite9ProcessingException("Can't process: "+m2);
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

    throw new Kite9ProcessingException("Can't process: "+m2);
  }

  private SimpleNoun checkSimpleNoun(Object o, NounPart np) {
    if (!(np instanceof SimpleNoun)) {
      throw new Kite9ProcessingException(this.getClass().getName()+" can only handle collaborators as SimpleNouns "+o+ " is "+np);
    }
   
    return (SimpleNoun) np;
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      return ((Field)m2).getDeclaringClass();
    } else if (m2 instanceof Constructor<?>) {
      return ((Constructor<?>)m2).getDeclaringClass();
    }
   
    throw new Kite9ProcessingException("Can't process: "+m2);
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

  }
 

  private SimpleNoun checkSimpleNoun(Object o, NounPart np) {
    if (!(np instanceof SimpleNoun)) {
      throw new Kite9ProcessingException(this.getClass().getName()+" can only handle collaborators as SimpleNouns "+o+ " is "+np);
    }
   
    return (SimpleNoun) np;
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

    Container container = (Container) stateMap.get(fromGroup);
   
    if (container==null) {
      DiagramElement de = ii.returnContext(c, fromGroup, new TextLine(fromGroup.getLabel()), true, null);
      if (!(de instanceof Context)) {
        throw new Kite9ProcessingException(fromGroup + " already exists in the diagram as a " + de.getClass()
            + " (Context needed)");
      }
      stateMap.put(fromGroup, de);
      container = (Container) de;
    }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      return new TextLine("get "+a.getObjectAlias(m2));
    } else if (m2 instanceof Constructor<?>) {
      return new TextLine("<new>");
    }
   
    throw new Kite9ProcessingException("Can't process: "+m2);
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

            Connected cto = (Connected) to;
            out = new Link(cfrom, cto, null, fromLabel,
                arrowHead ? LinkEndStyle.ARROW : null, toLabel,
                d);
          } else {
            throw new Kite9ProcessingException(
                "Could not link between: " + from + " and "
                    + to);
          }
        }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

    if (in instanceof AnnotatedNounPart) {
      return getRawSimpleNoun(((AnnotatedNounPart) in)
          .getNounPart());
    }

    throw new Kite9ProcessingException("Can't process this noun" + in);

  }
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.