001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.wml.dom;
018:
019: import org.apache.wml.*;
020:
021: /**
022: * @xerces.internal
023: * @version $Id: WMLImgElementImpl.java 447257 2006-09-18 05:40:07Z mrglavas $
024: * @author <a href="mailto:david@topware.com.tw">David Li</a>
025: */
026: public class WMLImgElementImpl extends WMLElementImpl implements
027: WMLImgElement {
028:
029: private static final long serialVersionUID = -500092034867051550L;
030:
031: public WMLImgElementImpl(WMLDocumentImpl owner, String tagName) {
032: super (owner, tagName);
033: }
034:
035: public void setWidth(String newValue) {
036: setAttribute("width", newValue);
037: }
038:
039: public String getWidth() {
040: return getAttribute("width");
041: }
042:
043: public void setClassName(String newValue) {
044: setAttribute("class", newValue);
045: }
046:
047: public String getClassName() {
048: return getAttribute("class");
049: }
050:
051: public void setXmlLang(String newValue) {
052: setAttribute("xml:lang", newValue);
053: }
054:
055: public String getXmlLang() {
056: return getAttribute("xml:lang");
057: }
058:
059: public void setLocalSrc(String newValue) {
060: setAttribute("localsrc", newValue);
061: }
062:
063: public String getLocalSrc() {
064: return getAttribute("localsrc");
065: }
066:
067: public void setHeight(String newValue) {
068: setAttribute("height", newValue);
069: }
070:
071: public String getHeight() {
072: return getAttribute("height");
073: }
074:
075: public void setAlign(String newValue) {
076: setAttribute("align", newValue);
077: }
078:
079: public String getAlign() {
080: return getAttribute("align");
081: }
082:
083: public void setVspace(String newValue) {
084: setAttribute("vspace", newValue);
085: }
086:
087: public String getVspace() {
088: return getAttribute("vspace");
089: }
090:
091: public void setAlt(String newValue) {
092: setAttribute("alt", newValue);
093: }
094:
095: public String getAlt() {
096: return getAttribute("alt");
097: }
098:
099: public void setId(String newValue) {
100: setAttribute("id", newValue);
101: }
102:
103: public String getId() {
104: return getAttribute("id");
105: }
106:
107: public void setHspace(String newValue) {
108: setAttribute("hspace", newValue);
109: }
110:
111: public String getHspace() {
112: return getAttribute("hspace");
113: }
114:
115: public void setSrc(String newValue) {
116: setAttribute("src", newValue);
117: }
118:
119: public String getSrc() {
120: return getAttribute("src");
121: }
122:
123: }
|