001 /* 002 * Copyright (c) 2003 World Wide Web Consortium, 003 * (Massachusetts Institute of Technology, Institut National de 004 * Recherche en Informatique et en Automatique, Keio University). All 005 * Rights Reserved. This program is distributed under the W3C's Software 006 * Intellectual Property License. This program is distributed in the 007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 009 * PURPOSE. 010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details. 011 */ 012 013 package org.w3c.dom.html2; 014 015 /** 016 * The <code>LINK</code> element specifies a link to an external resource, and 017 * defines this document's relationship to that resource (or vice versa). 018 * See the LINK element definition in HTML 4.01 (see also the 019 * <code>LinkStyle</code> interface in the StyleSheet module [<a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>DOM Level 2 Style Sheets and CSS</a>]). 020 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>. 021 */ 022 public interface HTMLLinkElement extends HTMLElement { 023 /** 024 * Enables/disables the link. This is currently only used for style sheet 025 * links, and may be used to activate or deactivate style sheets. 026 */ 027 public boolean getDisabled(); 028 /** 029 * Enables/disables the link. This is currently only used for style sheet 030 * links, and may be used to activate or deactivate style sheets. 031 */ 032 public void setDisabled(boolean disabled); 033 034 /** 035 * The character encoding of the resource being linked to. See the charset 036 * attribute definition in HTML 4.01. 037 */ 038 public String getCharset(); 039 /** 040 * The character encoding of the resource being linked to. See the charset 041 * attribute definition in HTML 4.01. 042 */ 043 public void setCharset(String charset); 044 045 /** 046 * The URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute definition in 047 * HTML 4.01. 048 */ 049 public String getHref(); 050 /** 051 * The URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute definition in 052 * HTML 4.01. 053 */ 054 public void setHref(String href); 055 056 /** 057 * Language code of the linked resource. See the hreflang attribute 058 * definition in HTML 4.01. 059 */ 060 public String getHreflang(); 061 /** 062 * Language code of the linked resource. See the hreflang attribute 063 * definition in HTML 4.01. 064 */ 065 public void setHreflang(String hreflang); 066 067 /** 068 * Designed for use with one or more target media. See the media attribute 069 * definition in HTML 4.01. 070 */ 071 public String getMedia(); 072 /** 073 * Designed for use with one or more target media. See the media attribute 074 * definition in HTML 4.01. 075 */ 076 public void setMedia(String media); 077 078 /** 079 * Forward link type. See the rel attribute definition in HTML 4.01. 080 */ 081 public String getRel(); 082 /** 083 * Forward link type. See the rel attribute definition in HTML 4.01. 084 */ 085 public void setRel(String rel); 086 087 /** 088 * Reverse link type. See the rev attribute definition in HTML 4.01. 089 */ 090 public String getRev(); 091 /** 092 * Reverse link type. See the rev attribute definition in HTML 4.01. 093 */ 094 public void setRev(String rev); 095 096 /** 097 * Frame to render the resource in. See the target attribute definition in 098 * HTML 4.01. 099 */ 100 public String getTarget(); 101 /** 102 * Frame to render the resource in. See the target attribute definition in 103 * HTML 4.01. 104 */ 105 public void setTarget(String target); 106 107 /** 108 * Advisory content type. See the type attribute definition in HTML 4.01. 109 */ 110 public String getType(); 111 /** 112 * Advisory content type. See the type attribute definition in HTML 4.01. 113 */ 114 public void setType(String type); 115 116 }