java.lang.Object
javax.swing.text.html.parser.AttributeList
- すべての実装されたインタフェース:
Serializable
,DTDConstants
public final class AttributeList extends Object implements DTDConstants, Serializable
このクラスは、ATTLIST構成要素を使って、DTDに記述されたとおりにSGML要素の属性を定義します。 AttributeListは、getAttributes()メソッドを使ってElementクラスから取得できます。
実際には、これはリンクされたリスト内の要素です。 要素の属性をすべて列挙するには、getNext()メソッドを繰返し使ってください。
- 関連項目:
-
フィールドのサマリー
インタフェース javax.swing.text.html.parser.DTDConstantsで宣言されたフィールド
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM
-
コンストラクタのサマリー
コンストラクタ説明AttributeList
(String name) 属性リストの要素を作成します。AttributeList
(String name, int type, int modifier, String value, Vector<?> values, AttributeList next) 属性リストの要素を作成します。 -
メソッドのサマリー
-
フィールド詳細
-
name
public String name属性名 -
type
public int type属性型 -
values
public Vector<?> values可能な属性値 -
modifier
public int modifier属性変更子 -
value
public String valueデフォルトの属性値 -
next
public AttributeList nextリストの次の属性
-
-
コンストラクタの詳細
-
AttributeList
public AttributeList(String name) 属性リストの要素を作成します。- パラメータ:
name
- 属性名
-
AttributeList
public AttributeList(String name, int type, int modifier, String value, Vector<?> values, AttributeList next) 属性リストの要素を作成します。- パラメータ:
name
- 属性名type
- 属性の型modifier
- 属性変更子value
- デフォルトの属性値values
- 可能な属性値next
- リスト内の次の属性
-
-
メソッドの詳細
-
getName
public String getName()属性名を返します。- 戻り値:
- 属性名
-
getType
public int getType()属性タイプを返します。- 戻り値:
- 属性の型
- 関連項目:
-
getModifier
public int getModifier()属性修飾子を返します。- 戻り値:
- 属性変更子
- 関連項目:
-
getValues
public Enumeration<?> getValues()可能な属性値を返します。- 戻り値:
- 可能な属性値
-
getValue
public String getValue()デフォルト属性値を返します。- 戻り値:
- デフォルトの属性値
-
getNext
public AttributeList getNext()リストの次の属性を返します。- 戻り値:
- リストにある次の属性
-
toString
public String toString()次のクラスからコピーされた説明:Object
オブジェクトの文字列表現を返します。 -
name2type
public static int name2type(String nm) 属性名を型に変換します- パラメータ:
nm
- 属性名- 戻り値:
- タイプ
-
type2name
public static String type2name(int tp) 型を属性名に変換- パラメータ:
tp
- 型- 戻り値:
- 属性名
-