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;
18:
19: import org.w3c.dom.Element;
20:
21: /**
22: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
23: * The DTD used in this DOM model is from
24: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
25: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
26: *
27: * <p>All WML Elements are derived from this class that contains two
28: * core attributes defined in the DTD.</p>
29: *
30: * @version $Id: WMLElement.java 447258 2006-09-18 05:41:23Z mrglavas $
31: * @author <a href="mailto:david@topware.com.tw">David Li</a>
32: */
33:
34: public interface WMLElement extends Element {
35:
36: /**
37: * The element's identifier which is unique in a single deck.
38: * (Section 8.9, WAP WML Version 16-Jun-1999)
39: */
40: public void setId(String newValue);
41:
42: public String getId();
43:
44: /**
45: * The 'class' attribute of a element that affiliates an elements
46: * with one or more elements.
47: * (Section 8.9, WAP WML Version 16-Jun-1999)
48: */
49: public void setClassName(String newValue);
50:
51: public String getClassName();
52: }
|