View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * https://caribou.iisg.agh.edu.pl/trac/cast
5    *
6    * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7    * You may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * http://www.eclipse.org/legal/epl-v10.html
10   */
11  /*
12   * File: OutlineConnectionNode.java
13   * Created: 2007-00-00
14   * Author: fox
15   * $Id: OutlineConnectionNode.java 2309 2009-01-12 22:37:58Z tmilos $
16   */
17  
18  package pl.edu.agh.cast.ui.outline;
19  
20  import pl.edu.agh.cast.model.base.IEntity;
21  import pl.edu.agh.cast.model.base.IRelation;
22  
23  /**
24   * Outline connection node.
25   *
26   * @author AGH CAST Team
27   */
28  public class OutlineConnectionNode {
29  
30  	/*
31  	 * UNUSED [tmilos] is this ever used?
32  	 */
33  
34  	private final IEntity node;
35  
36  	private final IRelation connection;
37  
38  	/**
39  	 * Creates new outline connection node.
40  	 *
41  	 * @param connection
42  	 *            relation
43  	 * @param node
44  	 *            entity
45  	 */
46  	public OutlineConnectionNode(IRelation connection, IEntity node) {
47  		this.connection = connection;
48  		this.node = node;
49  	}
50  
51  	public IRelation getConnection() {
52  		return connection;
53  	}
54  
55  	public IEntity getNode() {
56  		return node;
57  	}
58  
59  }