|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.build.Tag
一塊りのタグとテキストを表現するクラスです。
フィールドの概要 | |
static int |
COMMENT
コメント |
static int |
DTD
DTD |
static int |
MISC
その他 |
static int |
PI
処理命令 |
static int |
TAG
タグ |
static int |
TEXT
テキスト |
コンストラクタの概要 | |
Tag(Reporter reporter,
int line,
int column,
int type,
String value)
指定された文字列を解析し、新しいタグ、テキストを表現する インスタンスを作成します。 |
メソッドの概要 | |
Hashtable |
getAttribute()
属性のペアを返します。 |
int |
getColumnNumber()
タグの開始カラムを返します。 |
String |
getElement()
タグの場合、要素名を返します。 |
String |
getInnerText()
タグで囲まれた内側の文字列を返します。 |
int |
getLineNumber()
タグの開始行数を返します。 |
String |
getText()
タグではない場合、テキストを返します。 |
int |
getType()
タイプを返します。 |
boolean |
isEmpty()
空タグかどうかを返します。 |
boolean |
isEndTag()
終了タグかどうかを返します。 |
void |
setElement(String element)
新しい要素名を設定します。 |
String |
toString()
タグの文字列表現を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int COMMENT
public static final int DTD
public static final int MISC
public static final int PI
public static final int TAG
public static final int TEXT
コンストラクタの詳細 |
public Tag(Reporter reporter, int line, int column, int type, String value) throws ParseException
引数の行番号とカラム位置は、エラーおよび警告のメッセージに利用されます。 メッセージ中に正しい行番号とカラム位置を表示するために、 文字列中の改行コードは LF (0x0A) に統一しておく必要があります。
reporter
- エラーレポータline
- 行番号 (1
から)column
- カラム位置 (1
から)type
- タイプvalue
- 解析する文字列
ParseException
- 解析中にエラーが発生した場合メソッドの詳細 |
public Hashtable getAttribute()
null
public int getColumnNumber()
public String getElement()
null
public String getInnerText()
public int getLineNumber()
public String getText()
null
public int getType()
public boolean isEmpty()
true
、それ以外は false
public boolean isEndTag()
true
、それ以外は false
public void setElement(String element)
element
- 新しい要素名public String toString()
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'