Last change
on this file since 1604 was
1604,
checked in by sherbold, 10 years ago
|
- sharing autoquest-plugin-uml code
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1604] | 1 | package de.ugoe.cs.autoquest.plugin.uml.eventcore;
|
---|
| 2 |
|
---|
| 3 | import org.eclipse.uml2.uml.Transition;
|
---|
| 4 |
|
---|
| 5 | import de.ugoe.cs.autoquest.eventcore.IEventType;
|
---|
| 6 |
|
---|
| 7 | // TODO comment
|
---|
| 8 | public class UMLTransitionType implements IEventType {
|
---|
| 9 |
|
---|
| 10 | /** */
|
---|
| 11 | private static final long serialVersionUID = 1L;
|
---|
| 12 |
|
---|
| 13 | private final Transition transition;
|
---|
| 14 |
|
---|
| 15 | public UMLTransitionType(Transition transition) {
|
---|
| 16 | this.transition = transition;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public Transition getTransition() {
|
---|
| 20 | return transition;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | @Override
|
---|
| 24 | public boolean equals(Object other) {
|
---|
| 25 | if( other==this ) {
|
---|
| 26 | return true;
|
---|
| 27 | }
|
---|
| 28 | if( other instanceof UMLTransitionType ) {
|
---|
| 29 | return ((UMLTransitionType) other).transition.equals(transition);
|
---|
| 30 | }
|
---|
| 31 | return false;
|
---|
| 32 | };
|
---|
| 33 |
|
---|
| 34 | @Override
|
---|
| 35 | public int hashCode() {
|
---|
| 36 | return transition.hashCode();
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | @Override
|
---|
| 40 | public String getName() {
|
---|
| 41 | // TODO Auto-generated method stub
|
---|
| 42 | System.out.println("TODO: implement UMLTransactionType.getName ");
|
---|
| 43 | return null;
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.