[961] | 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.plugin.html.guimodel; |
---|
| 16 | |
---|
| 17 | /** |
---|
| 18 | * <p> |
---|
| 19 | * TODO comment |
---|
| 20 | * </p> |
---|
| 21 | * |
---|
| 22 | * @author Patrick Harms |
---|
| 23 | */ |
---|
[989] | 24 | public class HTMLPageElement extends HTMLGUIElement { |
---|
[961] | 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 | */ |
---|
[1069] | 49 | public HTMLPageElement(HTMLPageElementSpec specification, HTMLDocument parent) { |
---|
[961] | 50 | super(specification, parent); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | /** |
---|
| 54 | * <p> |
---|
| 55 | * TODO: comment |
---|
| 56 | * </p> |
---|
| 57 | * |
---|
| 58 | * @return |
---|
| 59 | */ |
---|
[1264] | 60 | public String getTagName() { |
---|
| 61 | return ((HTMLPageElementSpec) super.getSpecification()).getTagName(); |
---|
[961] | 62 | } |
---|
| 63 | |
---|
| 64 | /** |
---|
| 65 | * <p> |
---|
| 66 | * TODO: comment |
---|
| 67 | * </p> |
---|
| 68 | * |
---|
| 69 | * @return |
---|
| 70 | */ |
---|
[1264] | 71 | public String getHtmlId() { |
---|
| 72 | return ((HTMLPageElementSpec) super.getSpecification()).getHtmlId(); |
---|
[961] | 73 | } |
---|
| 74 | |
---|
| 75 | /** |
---|
| 76 | * <p> |
---|
| 77 | * TODO: comment |
---|
| 78 | * </p> |
---|
| 79 | * |
---|
| 80 | * @return |
---|
| 81 | */ |
---|
[1264] | 82 | public int getIndex() { |
---|
| 83 | return ((HTMLPageElementSpec) super.getSpecification()).getIndex(); |
---|
[961] | 84 | } |
---|
| 85 | |
---|
[1264] | 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 | |
---|
[961] | 96 | /** |
---|
| 97 | * <p> |
---|
| 98 | * TODO: comment |
---|
| 99 | * </p> |
---|
| 100 | * |
---|
| 101 | * @return |
---|
| 102 | */ |
---|
[1264] | 103 | HTMLDocumentSpec getPage() { |
---|
| 104 | return ((HTMLPageElementSpec) super.getSpecification()).getPage(); |
---|
[961] | 105 | } |
---|
| 106 | |
---|
| 107 | } |
---|