|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.html.parser.DTD
SGML DTD の表現です。これは、DTDParser によって生成されます。結果として得られる DTD オブジェクトはドキュメントの構文を記述したものであり、Parser を使って HTML ドキュメントを解析するときに必要です。DTD オブジェクトは、DTD に定義されている要素とその属性のリスト、さらにはエンティティのリストを格納しています。
Element
,
AttributeList
,
ContentModel
,
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 |
コンストラクタの概要 | |
protected |
DTD(String name)
新しい DTD を作成します。 |
メソッドの概要 | |
protected AttributeList |
defAttributeList(String name,
int type,
int modifier,
String value,
String values,
AttributeList atts)
属性リストを定義します。 |
protected ContentModel |
defContentModel(int type,
Object obj,
ContentModel next)
コンテンツモデルを定義します。 |
protected Element |
defElement(String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
String[] exclusions,
String[] inclusions,
AttributeList atts)
要素を定義します。 |
Entity |
defEntity(String name,
int type,
int ch)
文字エンティティを定義します。 |
protected Entity |
defEntity(String name,
int type,
String str)
エンティティを定義します。 |
void |
defineAttributes(String name,
AttributeList atts)
要素の属性を定義します。 |
Element |
defineElement(String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
BitSet exclusions,
BitSet inclusions,
AttributeList atts)
要素を定義します。 |
Entity |
defineEntity(String name,
int type,
char[] data)
エンティティを定義します。 |
static DTD |
getDTD(String name)
DTD を返します。 |
Element |
getElement(int index)
要素をインデックスで返します。 |
Element |
getElement(String name)
要素を名前で返します。 |
Entity |
getEntity(int ch)
文字エンティティを返します。 |
Entity |
getEntity(String name)
エンティティを名前で返します。 |
String |
getName()
DTD の名前を取得します。 |
static void |
putDTDHash(String name,
DTD dtd)
|
void |
read(DataInputStream in)
|
String |
toString()
文字列表現を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public String name
public Vector elements
public Hashtable elementHash
public Hashtable entityHash
public final Element pcdata
public final Element html
public final Element meta
public final Element base
public final Element isindex
public final Element head
public final Element body
public final Element applet
public final Element param
public final Element p
public final Element title
public static int FILE_VERSION
コンストラクタの詳細 |
protected DTD(String name)
メソッドの詳細 |
public String getName()
public Entity getEntity(String name)
public Entity getEntity(int ch)
public Element getElement(String name)
public Element getElement(int index)
public Entity defineEntity(String name, int type, char[] data)
public Element defineElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, BitSet exclusions, BitSet inclusions, AttributeList atts)
public void defineAttributes(String name, AttributeList atts)
public Entity defEntity(String name, int type, int ch)
protected Entity defEntity(String name, int type, String str)
protected Element defElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String[] exclusions, String[] inclusions, AttributeList atts)
protected AttributeList defAttributeList(String name, int type, int modifier, String value, String values, AttributeList atts)
protected ContentModel defContentModel(int type, Object obj, ContentModel next)
public String toString()
Object
内の toString
java.lang.Object
からコピーされたタグ:public static void putDTDHash(String name, DTD dtd)
public static DTD getDTD(String name) throws IOException
public void read(DataInputStream in) throws IOException
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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.