KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > dom > html > HTMLLinkElementImpl


1 /**
2  * org/ozone-db/xml/dom/html/HTMLLinkElementImpl.java
3  *
4  * The contents of this file are subject to the OpenXML Public
5  * License Version 1.0; you may not use this file except in compliance
6  * with the License. You may obtain a copy of the License at
7  * http://www.openxml.org/license.html
8  *
9  * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
10  * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
11  * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
12  * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
13  * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
14  * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
15  *
16  * The Initial Developer of this code under the License is Assaf Arkin.
17  * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
18  * All Rights Reserved.
19  */

20
21
22 package org.ozoneDB.xml.dom.html;
23
24
25 import org.ozoneDB.xml.dom.ElementImpl;
26 import org.w3c.dom.html.HTMLLinkElement;
27
28
29 /**
30  * @version $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
31  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
32  * @see org.w3c.dom.html.HTMLLinkElement
33  * @see ElementImpl
34  */

35 public final class HTMLLinkElementImpl extends HTMLElementImpl implements HTMLLinkElement {
36
37
38     public boolean getDisabled() {
39         return getAttribute( "disabled" ) != null;
40     }
41
42
43     public void setDisabled( boolean disabled ) {
44         setAttribute( "disabled", disabled ? "" : null );
45     }
46
47
48     public String JavaDoc getCharset() {
49         return getAttribute( "charset" );
50     }
51
52
53     public void setCharset( String JavaDoc charset ) {
54         setAttribute( "charset", charset );
55     }
56
57
58     public String JavaDoc getHref() {
59         return getAttribute( "href" );
60     }
61
62
63     public void setHref( String JavaDoc href ) {
64         setAttribute( "href", href );
65     }
66
67
68     public String JavaDoc getHreflang() {
69         return getAttribute( "hreflang" );
70     }
71
72
73     public void setHreflang( String JavaDoc hreflang ) {
74         setAttribute( "hreflang", hreflang );
75     }
76
77
78     public String JavaDoc getMedia() {
79         return getAttribute( "media" );
80     }
81
82
83     public void setMedia( String JavaDoc media ) {
84         setAttribute( "media", media );
85     }
86
87
88     public String JavaDoc getRel() {
89         return getAttribute( "rel" );
90     }
91
92
93     public void setRel( String JavaDoc rel ) {
94         setAttribute( "rel", rel );
95     }
96
97
98     public String JavaDoc getRev() {
99         return getAttribute( "rev" );
100     }
101
102
103     public void setRev( String JavaDoc rev ) {
104         setAttribute( "rev", rev );
105     }
106
107
108     public String JavaDoc getTarget() {
109         return getAttribute( "target" );
110     }
111
112
113     public void setTarget( String JavaDoc target ) {
114         setAttribute( "target", target );
115     }
116
117
118     public String JavaDoc getType() {
119         return getAttribute( "type" );
120     }
121
122
123     public void setType( String JavaDoc type ) {
124         setAttribute( "type", type );
125     }
126
127
128     /**
129      * Constructor requires owner document.
130      *
131      * @param owner The owner HTML document
132      */

133     public HTMLLinkElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
134         super( owner, "LINK" );
135     }
136
137
138 }
139
Popular Tags