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.html.dom;
018:
019: import org.w3c.dom.html.HTMLLinkElement;
020:
021: /**
022: * @xerces.internal
023: * @version $Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
024: * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
025: * @see org.w3c.dom.html.HTMLLinkElement
026: * @see org.apache.xerces.dom.ElementImpl
027: */
028: public class HTMLLinkElementImpl extends HTMLElementImpl implements
029: HTMLLinkElement {
030:
031: private static final long serialVersionUID = 874345520063418879L;
032:
033: public boolean getDisabled() {
034: return getBinary("disabled");
035: }
036:
037: public void setDisabled(boolean disabled) {
038: setAttribute("disabled", disabled);
039: }
040:
041: public String getCharset() {
042: return getAttribute("charset");
043: }
044:
045: public void setCharset(String charset) {
046: setAttribute("charset", charset);
047: }
048:
049: public String getHref() {
050: return getAttribute("href");
051: }
052:
053: public void setHref(String href) {
054: setAttribute("href", href);
055: }
056:
057: public String getHreflang() {
058: return getAttribute("hreflang");
059: }
060:
061: public void setHreflang(String hreflang) {
062: setAttribute("hreflang", hreflang);
063: }
064:
065: public String getMedia() {
066: return getAttribute("media");
067: }
068:
069: public void setMedia(String media) {
070: setAttribute("media", media);
071: }
072:
073: public String getRel() {
074: return getAttribute("rel");
075: }
076:
077: public void setRel(String rel) {
078: setAttribute("rel", rel);
079: }
080:
081: public String getRev() {
082: return getAttribute("rev");
083: }
084:
085: public void setRev(String rev) {
086: setAttribute("rev", rev);
087: }
088:
089: public String getTarget() {
090: return getAttribute("target");
091: }
092:
093: public void setTarget(String target) {
094: setAttribute("target", target);
095: }
096:
097: public String getType() {
098: return getAttribute("type");
099: }
100:
101: public void setType(String type) {
102: setAttribute("type", type);
103: }
104:
105: /**
106: * Constructor requires owner document.
107: *
108: * @param owner The owner HTML document
109: */
110: public HTMLLinkElementImpl(HTMLDocumentImpl owner, String name) {
111: super(owner, name);
112: }
113:
114: }
|