JavaTM 2 Platform
Std. Ed. v1.3

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

java.lang.Object
  |
  +--javax.swing.text.html.parser.Element
すべての実装インタフェース:
DTDConstants, Serializable

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
           
 
インタフェース 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 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
クラス java.lang.Object からコピーされたタグ:
戻り値:
このオブジェクトの文字列表現

getAttribute

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

getAttributeByValue

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

name2type

public static int name2type(String nm)

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.