001: /**
002: * org/ozone-db/xml/dom/html/HTMLLinkElementImpl.java
003: *
004: * The contents of this file are subject to the OpenXML Public
005: * License Version 1.0; you may not use this file except in compliance
006: * with the License. You may obtain a copy of the License at
007: * http://www.openxml.org/license.html
008: *
009: * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
010: * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
011: * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
012: * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
013: * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
014: * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
015: *
016: * The Initial Developer of this code under the License is Assaf Arkin.
017: * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
018: * All Rights Reserved.
019: */package org.ozoneDB.xml.dom.html;
020:
021: import org.ozoneDB.xml.dom.*;
022: import org.w3c.dom.*;
023: import org.w3c.dom.html.*;
024:
025: /**
026: * @version $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
027: * @author <a href="mailto:arkin@trendline.co.il">Assaf Arkin</a>
028: * @see org.w3c.dom.html.HTMLLinkElement
029: * @see ElementImpl
030: */
031: public final class HTMLLinkElementImpl extends HTMLElementImpl
032: implements HTMLLinkElement {
033:
034: public boolean getDisabled() {
035: return getAttribute("disabled") != null;
036: }
037:
038: public void setDisabled(boolean disabled) {
039: setAttribute("disabled", disabled ? "" : null);
040: }
041:
042: public String getCharset() {
043: return getAttribute("charset");
044: }
045:
046: public void setCharset(String charset) {
047: setAttribute("charset", charset);
048: }
049:
050: public String getHref() {
051: return getAttribute("href");
052: }
053:
054: public void setHref(String href) {
055: setAttribute("href", href);
056: }
057:
058: public String getHreflang() {
059: return getAttribute("hreflang");
060: }
061:
062: public void setHreflang(String hreflang) {
063: setAttribute("hreflang", hreflang);
064: }
065:
066: public String getMedia() {
067: return getAttribute("media");
068: }
069:
070: public void setMedia(String media) {
071: setAttribute("media", media);
072: }
073:
074: public String getRel() {
075: return getAttribute("rel");
076: }
077:
078: public void setRel(String rel) {
079: setAttribute("rel", rel);
080: }
081:
082: public String getRev() {
083: return getAttribute("rev");
084: }
085:
086: public void setRev(String rev) {
087: setAttribute("rev", rev);
088: }
089:
090: public String getTarget() {
091: return getAttribute("target");
092: }
093:
094: public void setTarget(String target) {
095: setAttribute("target", target);
096: }
097:
098: public String getType() {
099: return getAttribute("type");
100: }
101:
102: public void setType(String type) {
103: setAttribute("type", type);
104: }
105:
106: /**
107: * Constructor requires owner document.
108: *
109: * @param owner The owner HTML document
110: */
111: public HTMLLinkElementImpl(HTMLDocumentImpl owner, String name) {
112: super (owner, "LINK");
113: }
114:
115: }
|