|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.html.parser.DTD
SGML DTD の表現です。これは、DTDParser によって生成されます。結果として得られる DTD オブジェクトはドキュメントの構文を記述したものであり、Parser を使って HTML ドキュメントを解析するときに必要です。DTD オブジェクトは、DTD に定義されている要素とその属性のリスト、さらにはエンティティのリストを格納しています。
Element
,
AttributeList
,
ContentModel
,
DTDParser
,
Parser
コンストラクタの概要 | |
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()
public static void putDTDHash(String name, DTD dtd)
public static DTD getDTD(String name) throws IOException
public void read(DataInputStream in) throws IOException
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |