Package org.xilaew.atg.exceptions

Examples of org.xilaew.atg.exceptions.YouShallNotDoThisException


  }

  public void setStartNode(InitialNode start)
      throws YouShallNotDoThisException {
    if (startNode != null) {
      throw new YouShallNotDoThisException("An Initial Node was already selected previously");
    }
    nodes.add(start);
    this.startNode = start;
  }
View Full Code Here



  public boolean add(ControlFlow o) throws YouShallNotDoThisException {
    // final Node is already set. ->ActivityPath is unmodifiable
    if (finalNode != null) {
      throw new YouShallNotDoThisException("Final Node was already selected previously"); //$NON-NLS-1$
    }
    // check for adjacency
    if (!(o.getSource().equals(nodes.get(nodes.size()-1)))) {
      throw new YouShallNotDoThisException("You tried to insert a control flow, that is not adjacent to the last control flow in this path. A path has to consist of an ordered set of adjacent control flows!");
    }
    // Path ends here
    if (o.getTarget() instanceof FinalNode) {
      finalNode = (FinalNode) o.getTarget();
    }
View Full Code Here

  TCGActivity transform_internal(Activity umlActivity)
      throws YouShallNotDoThisException {
    Logging.trace("transform called", this);
    if (this.umlActivity != null) {
      throw new YouShallNotDoThisException(
          Messages.UML2TCGActivity_USE_ONLY_ONCE);
    }
    this.umlActivity = umlActivity;
    return (TCGActivity) transformElement(umlActivity);
  }
View Full Code Here

        // retreat
        currentNode = e.getSource();
      }
      if (!currentNode.equals(currentEdge.getFirst().getSource())) {
        try {
          throw new YouShallNotDoThisException("bullshit");
        } catch (YouShallNotDoThisException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
View Full Code Here

TOP

Related Classes of org.xilaew.atg.exceptions.YouShallNotDoThisException

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.