1 /*
2 * Copyright 2011 FatWire Corporation. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.fatwire.gst.foundation.html;
17
18 public final class Img extends BaseElement {
19 private String src;
20 private String alt;
21 private String longdesc;
22 private String name;
23 private String height;
24 private String width;
25 private String usemap;
26 private String ismap;
27
28 /**
29 * @return the src
30 */
31 public String getSrc() {
32 return src;
33 }
34
35 /**
36 * @param src the src to set
37 */
38 public void setSrc(final String src) {
39 this.src = src;
40 }
41
42 /**
43 * @return the alt
44 */
45 public String getAlt() {
46 return alt;
47 }
48
49 /**
50 * @param alt the alt to set
51 */
52 public void setAlt(final String alt) {
53 this.alt = alt;
54 }
55
56 /**
57 * @return the longdesc
58 */
59 public String getLongdesc() {
60 return longdesc;
61 }
62
63 /**
64 * @param longdesc the longdesc to set
65 */
66 public void setLongdesc(final String longdesc) {
67 this.longdesc = longdesc;
68 }
69
70 /**
71 * @return the name
72 */
73 public String getName() {
74 return name;
75 }
76
77 /**
78 * @param name the name to set
79 */
80 public void setName(final String name) {
81 this.name = name;
82 }
83
84 /**
85 * @return the height
86 */
87 public String getHeight() {
88 return height;
89 }
90
91 /**
92 * @param height the height to set
93 */
94 public void setHeight(final String height) {
95 this.height = height;
96 }
97
98 /**
99 * @return the width
100 */
101 public String getWidth() {
102 return width;
103 }
104
105 /**
106 * @param width the width to set
107 */
108 public void setWidth(final String width) {
109 this.width = width;
110 }
111
112 /**
113 * @return the usemap
114 */
115 public String getUsemap() {
116 return usemap;
117 }
118
119 /**
120 * @param usemap the usemap to set
121 */
122 public void setUsemap(final String usemap) {
123 this.usemap = usemap;
124 }
125
126 /**
127 * @return the ismap
128 */
129 public String getIsmap() {
130 return ismap;
131 }
132
133 /**
134 * @param ismap the ismap to set
135 */
136 public void setIsmap(final String ismap) {
137 this.ismap = ismap;
138 }
139
140 /*
141 * (non-Javadoc)
142 *
143 * @see java.lang.Object#toString()
144 */
145 @Override
146 public String toString() {
147 return "Img [src=" + src + ", alt=" + alt + ", getId()=" + getId() + "]";
148 }
149
150 }