Package org.kite9.framework.common

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


    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

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

  }
 

  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

    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

      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

            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

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

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

  }
View Full Code Here

    } else if (o instanceof NounPart){
          return getId(((NounPart)o).getRepresented());
    } else if (o instanceof Object) {
        return getDiagramEntityId(o.getClass().toString());
    } else {
      throw new Kite9ProcessingException("Could not get id for " + o.getClass().toString());
    }
  }
View Full Code Here

    if (m instanceof Field) {
      return (((Field)m).getGenericType());
    } else if (m instanceof Method) {
      return (((Method)m).getGenericReturnType());
    } else {
      throw new Kite9ProcessingException("AccessibleValue return type only works with field or method: "+m);
    }
  }
View Full Code Here

TOP

Related Classes of org.kite9.framework.common.Kite9ProcessingException

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.