1 38 package com.gargoylesoftware.htmlunit.html; 39 40 import java.util.Map ; 41 42 49 public class HtmlStyle extends HtmlElement { 50 51 52 public static final String TAG_NAME = "style"; 53 54 60 public HtmlStyle( final HtmlPage page, final Map attributes ) { 61 super(page, attributes); 62 } 63 64 67 public String getTagName() { 68 return TAG_NAME; 69 } 70 71 79 public final String getLangAttribute() { 80 return getAttributeValue("lang"); 81 } 82 83 84 92 public final String getXmlLangAttribute() { 93 return getAttributeValue("xml:lang"); 94 } 95 96 97 105 public final String getTextDirectionAttribute() { 106 return getAttributeValue("dir"); 107 } 108 109 110 118 public final String getTypeAttribute() { 119 return getAttributeValue("type"); 120 } 121 122 123 131 public final String getMediaAttribute() { 132 return getAttributeValue("media"); 133 } 134 135 136 144 public final String getTitleAttribute() { 145 return getAttributeValue("title"); 146 } 147 } 148 | Popular Tags |