Examples of Kite9ProcessingException


Examples of org.kite9.framework.common.Kite9ProcessingException

    if (in instanceof SimpleNoun) {
      return ((SimpleNoun) in).getLabel();
    }

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

  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

        }

        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

        DiagramElement de = ii.returnConnectionBody(c, to, to.getLabel());

        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

        DiagramElement de = ii.returnContext(c, to, border ? toUse
            : null, border, d);
        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

          out = ii.returnTextLine((Glyph) de, pb, text);
        } else if (de instanceof TextLine) {
          // add further information to the text line
          out = ii.extendTextLine((TextLine) de, pb, ", "+text);
        } else {
          throw new Kite9ProcessingException(
              "Text line can only be added to existing text lines or glyphs: "
                  + de);
        }
       
        ii.mapExisting(value, out);
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      if (within instanceof Container) {
        return (Container) within;
      } else if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    } else {
      // object must exist outside context
      if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      if (t.getSort() == Type.OBJECT) {
        String className2 = t.getInternalName();
        addDependency(className, model, className2);
      }
    } catch (RuntimeException e) {
      throw new Kite9ProcessingException("Could not handle type: " + t.getDescriptor(), e);
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      w.close();

      InputStream image = conn.getInputStream();
      RepositoryHelp.streamCopy(image, os, true);
    } catch (MalformedURLException e) {
      throw new Kite9ProcessingException("Could not connect to diagram server", e);
    } catch (IOException e) {
      throw new Kite9ProcessingException("Could not retrieve diagram server from " + url, e);
    }

  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

                && (method.getParameterTypes()[0]
                    .equals(DiagramBuilder.class))) {
              args = new Object[] { createDiagramBuilder(
                  getContext(), method) };
            } else {
              throw new Kite9ProcessingException(
                  "Could not determine arguments for " + id);
            }
 
            WorkItem item = null;
            if (Modifier.isStatic(method.getModifiers())) {
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      }

      return out;

  } catch (IOException e) {
      throw new Kite9ProcessingException("Could not retrieve classes: ", e);
  }
    }
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.