01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wml.dom;
18:
19: import org.apache.wml.*;
20:
21: /**
22: * @xerces.internal
23: * @version $Id: WMLDoElementImpl.java 447257 2006-09-18 05:40:07Z mrglavas $
24: * @author <a href="mailto:david@topware.com.tw">David Li</a>
25: */
26: public class WMLDoElementImpl extends WMLElementImpl implements
27: WMLDoElement {
28:
29: private static final long serialVersionUID = 7755861458464251322L;
30:
31: public WMLDoElementImpl(WMLDocumentImpl owner, String tagName) {
32: super (owner, tagName);
33: }
34:
35: public void setOptional(String newValue) {
36: setAttribute("optional", newValue);
37: }
38:
39: public String getOptional() {
40: return getAttribute("optional");
41: }
42:
43: public void setClassName(String newValue) {
44: setAttribute("class", newValue);
45: }
46:
47: public String getClassName() {
48: return getAttribute("class");
49: }
50:
51: public void setXmlLang(String newValue) {
52: setAttribute("xml:lang", newValue);
53: }
54:
55: public String getXmlLang() {
56: return getAttribute("xml:lang");
57: }
58:
59: public void setId(String newValue) {
60: setAttribute("id", newValue);
61: }
62:
63: public String getId() {
64: return getAttribute("id");
65: }
66:
67: public void setLabel(String newValue) {
68: setAttribute("label", newValue);
69: }
70:
71: public String getLabel() {
72: return getAttribute("label");
73: }
74:
75: public void setType(String newValue) {
76: setAttribute("type", newValue);
77: }
78:
79: public String getType() {
80: return getAttribute("type");
81: }
82:
83: public void setName(String newValue) {
84: setAttribute("name", newValue);
85: }
86:
87: public String getName() {
88: return getAttribute("name");
89: }
90:
91: }
|