JavaTM Platform
Standard Ed. 6

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

java.lang.Object
  上位を拡張 javax.swing.text.html.parser.ContentModel
すべての実装されたインタフェース:
Serializable

public final class ContentModel
extends Object
implements Serializable

コンテンツモデルの表現です。コンテンツモデルは、基本的に、制限付きの 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
 

フィールドの詳細

type

public int type
タイプです。'*'、'?'、'+'、','、'|'、'&' のどれかです。


content

public Object content
コンテンツです。Element または ContentModel です。


next

public ContentModel next
',' 式、'|' 式、または '&' 式の中にある次のコンテンツモデルです。

コンストラクタの詳細

ContentModel

public ContentModel()

ContentModel

public ContentModel(Element content)
要素のコンテンツモデルを作成します。


ContentModel

public ContentModel(int type,
                    ContentModel content)
特定の型のコンテンツモデルを作成します。


ContentModel

public ContentModel(int type,
                    Object content,
                    ContentModel next)
特定の型のコンテンツモデルを作成します。

メソッドの詳細

empty

public boolean empty()
コンテンツモデルが空の入力ストリームと一致する場合に true を返します。


getElements

public void getElements(Vector<Element> elemVec)
この contentModel の一部である要素のリストを使って、elemVec を更新します。


first

public boolean first(Object token)
token が入力ストリームの最初のトークンになる場合に true を返します。


first

public Element first()
次の要素を返します。


toString

public String toString()
文字列に変換します。

オーバーライド:
クラス Object 内の toString
戻り値:
このオブジェクトの文字列表現

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。