- すべての実装されたインタフェース:
Serializable
, DTDConstants
ELEMENT構成要素を使ってDTDに記述されたとおりの要素です。 これは、タグに不可欠な記述です。 タイプ、コンテンツ・モデル、属性、属性の型などを記述しています。この記述は、ドキュメントを正しく解析するためにParserによって使用されます。
- 関連項目:
-
-
フィールドのサマリー
フィールド
インタフェース 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
-
メソッドのサマリー
int
int
boolean
static int
boolean
boolean
-
フィールド詳細
-
index
public int index
要素インデックス
-
-
oStart
public boolean oStart
開始タグを省略できる場合はtrue
-
oEnd
public boolean oEnd
終了タグを省略できる場合はtrue
-
inclusions
要素の内部で発生する要素のセット
-
exclusions
要素の内部で発生してはならない要素のセット
-
type
public int type
要素タイプ。
-
-
-
data
ユーザー・データを格納するフィールドです。 ほとんどの場合、スタイル・シートの格納に使われます。
-
メソッドの詳細
-
getName
要素の名前を取得します。
- 戻り値:
- 要素の名前
-
omitStart
public boolean omitStart()
開始タグを省略できる場合にtrueを返します。
- 戻り値:
- 開始タグを省略できる場合は
true
-
omitEnd
public boolean omitEnd()
終了タグを省略できる場合にtrueを返します。
- 戻り値:
- 終了タグを省略できる場合は
true
-
getType
public int getType()
型を取得します。
- 戻り値:
- 要素の型
-
getContent
コンテンツ・モデルを返します。
- 戻り値:
- コンテンツ・モデル
-
getAttributes
属性を取得します。
- 戻り値:
- 要素を指定する
AttributeList
-
getIndex
public int getIndex()
インデックスを取得します。
- 戻り値:
- 要素インデックス
-
isEmpty
public boolean isEmpty()
空かどうかを判定します。
- 戻り値:
- 現在の要素が空の場合はtrue
-
toString
文字列に変換します。
- オーバーライド:
toString
、クラスObject
- 戻り値:
- 指定された
Element
インスタンスの文字列表現
-
getAttribute
属性を名前で取得します。
- パラメータ:
name
- 属性名
- 戻り値:
- 与えられた
name
のAttributeList
-
getAttributeByValue
属性を値で取得します。
- パラメータ:
value
- 値の文字列表現
- 戻り値:
- 与えられた
value
のAttributeList
-
name2type
public static int name2type(String nm)
nm
を型に変換します。 nm
がCDATA、RCDATA、EMPTYまたはANYと等しい場合は適切なDTDConstantsを返し、そうでない場合は0を返します。
- パラメータ:
nm
- 名前
- 戻り値:
nm
がCDATA、RCDATA、EMPTYまたはANYと等しい場合は適切なDTDConstants、そうでない場合は0。