|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.html.parser.ContentModel
public final class ContentModel
コンテンツモデルの表現です。コンテンツモデルは、基本的に、制限付きの BNF 式です。これは、コンテンツモデルは決定性を持たなければならないという意味合いからの制限です。つまり、コンテンツモデルを有限状態オートマトンとして表現する必要はありません。
詳細は、『SGML handbook』556 ページの付録 H (Annex H) を参照してください。
| フィールドの概要 | |
|---|---|
Object |
content
コンテンツです。 |
ContentModel |
next
',' 式、'|' 式、または '&' 式の中にある次のコンテンツモデルです。 |
int |
type
型です。 |
| コンストラクタの概要 | |
|---|---|
ContentModel()
|
|
ContentModel(Element content)
要素のコンテンツモデルを作成します。 |
|
ContentModel(int type,
ContentModel content)
特定の型のコンテンツモデルを作成します。 |
|
ContentModel(int type,
Object content,
ContentModel next)
特定の型のコンテンツモデルを作成します。 |
|
| メソッドの概要 | |
|---|---|
boolean |
empty()
コンテンツモデルが空の入力ストリームと一致する場合に true を返します。 |
Element |
first()
次の要素を返します。 |
boolean |
first(Object token)
token が入力ストリームの最初のトークンになる場合に true を返します。 |
void |
getElements(Vector<Element> elemVec)
この contentModel の一部である要素のリストを使って、elemVec を更新します。 |
String |
toString()
文字列に変換します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
public int type
public Object content
public ContentModel next
| コンストラクタの詳細 |
|---|
public ContentModel()
public ContentModel(Element content)
public ContentModel(int type,
ContentModel content)
public ContentModel(int type,
Object content,
ContentModel next)
| メソッドの詳細 |
|---|
public boolean empty()
public void getElements(Vector<Element> elemVec)
public boolean first(Object token)
public Element first()
public String toString()
Object 内の toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。