1 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 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 getCharset() { 49 return getAttribute( "charset" ); 50 } 51 52 53 public void setCharset( String charset ) { 54 setAttribute( "charset", charset ); 55 } 56 57 58 public String getHref() { 59 return getAttribute( "href" ); 60 } 61 62 63 public void setHref( String href ) { 64 setAttribute( "href", href ); 65 } 66 67 68 public String getHreflang() { 69 return getAttribute( "hreflang" ); 70 } 71 72 73 public void setHreflang( String hreflang ) { 74 setAttribute( "hreflang", hreflang ); 75 } 76 77 78 public String getMedia() { 79 return getAttribute( "media" ); 80 } 81 82 83 public void setMedia( String media ) { 84 setAttribute( "media", media ); 85 } 86 87 88 public String getRel() { 89 return getAttribute( "rel" ); 90 } 91 92 93 public void setRel( String rel ) { 94 setAttribute( "rel", rel ); 95 } 96 97 98 public String getRev() { 99 return getAttribute( "rev" ); 100 } 101 102 103 public void setRev( String rev ) { 104 setAttribute( "rev", rev ); 105 } 106 107 108 public String getTarget() { 109 return getAttribute( "target" ); 110 } 111 112 113 public void setTarget( String target ) { 114 setAttribute( "target", target ); 115 } 116 117 118 public String getType() { 119 return getAttribute( "type" ); 120 } 121 122 123 public void setType( String type ) { 124 setAttribute( "type", type ); 125 } 126 127 128 133 public HTMLLinkElementImpl( HTMLDocumentImpl owner, String name ) { 134 super( owner, "LINK" ); 135 } 136 137 138 } 139 | Popular Tags |