@Published(tag="architect") public class HtmlAttributes extends java.lang.Object
HtmlAttributeをキーにして属性の値を保持する。| Modifier and Type | Field and Description | 
|---|---|
static HtmlAttributes | 
EMPTY_ATTRIBUTES
空の属性。属性を何も指定しない場合に使用する。 
 | 
| Constructor and Description | 
|---|
HtmlAttributes()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
属性をクリアする。 
 | 
<T> T | 
get(HtmlAttribute attribute)
属性を取得する。 
 | 
boolean | 
isEmpty()
空か判定する。 
 | 
java.util.Set<HtmlAttribute> | 
keys()
全属性のキーのセットを取得する。 
 | 
void | 
put(HtmlAttribute attribute,
   java.lang.Object value)
属性を設定する。 
既に存在する場合は上書き。  | 
void | 
putAll(HtmlAttributes other)
属性を設定する。 
既に存在する場合は上書き。  | 
java.lang.String | 
toHTML(java.lang.String tagName)
HTMLタグの属性に指定できる形式の文字列を取得する。 
 | 
public static final HtmlAttributes EMPTY_ATTRIBUTES
public void put(HtmlAttribute attribute, java.lang.Object value)
attribute - 属性の名前value - 属性の値public void putAll(HtmlAttributes other)
other - 属性public <T> T get(HtmlAttribute attribute)
T - 属性の型attribute - 属性の名前public java.util.Set<HtmlAttribute> keys()
public void clear()
public boolean isEmpty()
public java.lang.String toHTML(java.lang.String tagName)
保持している属性をスペース区切りで連結した文字列を返す。 属性の値がBoolean型の場合を除き、属性の書式は「名前="値"」となる。 属性の値がBoolean型の場合は、下記の通り処理する。 属性の値がtrueの場合:「名前="名前"」の書式で文字列に含める。 属性の値がfalseの場合:文字列に含めない。
tagName - タグ名称