source: trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElement.java @ 1264

Last change on this file since 1264 was 1264, checked in by pharms, 11 years ago
  • improved logging
File size: 2.3 KB
Line 
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
15package de.ugoe.cs.autoquest.plugin.html.guimodel;
16
17/**
18 * <p>
19 * TODO comment
20 * </p>
21 *
22 * @author Patrick Harms
23 */
24public class HTMLPageElement extends HTMLGUIElement {
25
26    /**  */
27    private static final long serialVersionUID = 1L;
28
29    /**
30     * <p>
31     * TODO: comment
32     * </p>
33     *
34     * @param specification
35     * @param parent
36     */
37    public HTMLPageElement(HTMLPageElementSpec specification, HTMLGUIElement parent) {
38        super(specification, parent);
39    }
40
41    /**
42     * <p>
43     * TODO: comment
44     * </p>
45     *
46     * @param specification
47     * @param parent
48     */
49    public HTMLPageElement(HTMLPageElementSpec specification, HTMLDocument parent) {
50        super(specification, parent);
51    }
52
53    /**
54     * <p>
55     * TODO: comment
56     * </p>
57     *
58     * @return
59     */
60    public String getTagName() {
61        return ((HTMLPageElementSpec) super.getSpecification()).getTagName();
62    }
63
64    /**
65     * <p>
66     * TODO: comment
67     * </p>
68     *
69     * @return
70     */
71    public String getHtmlId() {
72        return ((HTMLPageElementSpec) super.getSpecification()).getHtmlId();
73    }
74
75    /**
76     * <p>
77     * TODO: comment
78     * </p>
79     *
80     * @return
81     */
82    public int getIndex() {
83        return ((HTMLPageElementSpec) super.getSpecification()).getIndex();
84    }
85
86    /*
87     * (non-Javadoc)
88     *
89     * @see de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLGUIElement#getElementDescriptor()
90     */
91    @Override
92    protected String getElementDescriptor() {
93        return getTagName();
94    }
95
96    /**
97     * <p>
98     * TODO: comment
99     * </p>
100     *
101     * @return
102     */
103    HTMLDocumentSpec getPage() {
104        return ((HTMLPageElementSpec) super.getSpecification()).getPage();
105    }
106
107}
Note: See TracBrowser for help on using the repository browser.