Java プラットフォーム 1.2

javax.swing.text.html.parser
クラス Element

java.lang.Object
  |
  +--javax.swing.text.html.parser.Element

public final class Element
extends Object
implements DTDConstants, Serializable

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
 

フィールドの詳細

index

public int index

name

public String name

oStart

public boolean oStart

oEnd

public boolean oEnd

inclusions

public BitSet inclusions

exclusions

public BitSet exclusions

type

public int type

content

public ContentModel content

atts

public AttributeList atts

data

public Object data
ユーザデータを格納するフィールドです。ほとんどの場合、スタイルシートの格納に使われます。
メソッドの詳細

getName

public String getName()
要素の名前を取得します。

omitStart

public boolean omitStart()
開始タグを省略できる場合に true を返します。

omitEnd

public boolean omitEnd()
終了タグを省略できる場合に true を返します。

getType

public int getType()
タイプを取得します。

getContent

public ContentModel getContent()
コンテンツモデルを取得します。

getAttributes

public AttributeList getAttributes()
属性を取得します。

getIndex

public int getIndex()
インデックスを取得します。

isEmpty

public boolean isEmpty()
空かどうかを判定します。

toString

public String toString()
文字列に変換します。
オーバーライド:
クラス Object 内の toString

getAttribute

public AttributeList getAttribute(String name)
属性を名前で取得します。

getAttributeByValue

public AttributeList getAttributeByValue(String name)
属性を値で取得します。

name2type

public static int name2type(String nm)

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.