1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
2 | // |
---|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
4 | // you may not use this file except in compliance with the License. |
---|
5 | // You may obtain a copy of the License at |
---|
6 | // |
---|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
8 | // |
---|
9 | // Unless required by applicable law or agreed to in writing, software |
---|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
12 | // See the License for the specific language governing permissions and |
---|
13 | // limitations under the License. |
---|
14 | |
---|
15 | package de.ugoe.cs.autoquest.eventcore.guimodel; |
---|
16 | |
---|
17 | import java.io.Serializable; |
---|
18 | |
---|
19 | import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; |
---|
20 | |
---|
21 | /** |
---|
22 | * <p> |
---|
23 | * Common interface for GUI element specifications. |
---|
24 | * </p> |
---|
25 | * |
---|
26 | * @version 1.1 |
---|
27 | * @author Patrick Harms, Steffen Herbold |
---|
28 | */ |
---|
29 | public interface IGUIElementSpec extends Serializable, IEventTargetSpec { |
---|
30 | |
---|
31 | /** |
---|
32 | * <p> |
---|
33 | * Returns a string representation of the GUI element type that this specification represents. |
---|
34 | * </p> |
---|
35 | * |
---|
36 | * @return |
---|
37 | */ |
---|
38 | public String getType(); |
---|
39 | |
---|
40 | /** |
---|
41 | * <p> |
---|
42 | * Returns a string array with the names of the classes in the hierarchy of the GUI element that |
---|
43 | * this specification represents. The first element is the GUI element's class, the second its |
---|
44 | * parent, the third its grand-parent, etc. |
---|
45 | * </p> |
---|
46 | * <p> |
---|
47 | * In case the class hierarchy is unknown or the GUI elements are not based on |
---|
48 | * object-orientation, this method should <code>return new String[]{getType()};</code>. |
---|
49 | * </p> |
---|
50 | * |
---|
51 | * @return |
---|
52 | */ |
---|
53 | public String[] getTypeHierarchy(); |
---|
54 | |
---|
55 | } |
---|