|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.html.parser.Element
ELEMENT 構成要素を使って DTD に記述されたとおりの要素です。これは、タグに不可欠な記述です。タイプ、コンテンツモデル、属性、属性のタイプなどを記述しています。この記述は、ドキュメントを正しく解析するために Parser が使います。
DTD
,
AttributeList
, 直列化された形式フィールドの概要 | |
AttributeList |
atts
|
ContentModel |
content
|
Object |
data
ユーザデータを格納するフィールドです。 |
BitSet |
exclusions
|
BitSet |
inclusions
|
int |
index
|
String |
name
|
boolean |
oEnd
|
boolean |
oStart
|
int |
type
|
メソッドの概要 | |
AttributeList |
getAttribute(String name)
属性を名前で取得します。 |
AttributeList |
getAttributeByValue(String name)
属性を値で取得します。 |
AttributeList |
getAttributes()
属性を取得します。 |
ContentModel |
getContent()
コンテンツモデルを取得します。 |
int |
getIndex()
インデックスを取得します。 |
String |
getName()
要素の名前を取得します。 |
int |
getType()
タイプを取得します。 |
boolean |
isEmpty()
空かどうかを判定します。 |
static int |
name2type(String nm)
|
boolean |
omitEnd()
終了タグを省略できる場合に true を返します。 |
boolean |
omitStart()
開始タグを省略できる場合に true を返します。 |
String |
toString()
文字列に変換します。 |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
フィールドの詳細 |
public int index
public String name
public boolean oStart
public boolean oEnd
public BitSet inclusions
public BitSet exclusions
public int type
public ContentModel content
public AttributeList atts
public Object data
メソッドの詳細 |
public String getName()
public boolean omitStart()
public boolean omitEnd()
public int getType()
public ContentModel getContent()
public AttributeList getAttributes()
public int getIndex()
public boolean isEmpty()
public String toString()
public AttributeList getAttribute(String name)
public AttributeList getAttributeByValue(String name)
public static int name2type(String nm)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |