|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.token.Attribute
トークン毎の属性を表すクラスです。
フィールドの概要 | |
protected int |
columnNumber
このトークンが開始される行頭からのカラム位置 |
protected Document |
document
ドキュメント情報 |
protected int |
lineNumber
このトークンの開始される行番号 |
protected Reporter |
reporter
解析時に起きたメッセージを記録するレポータ |
コンストラクタの概要 | |
Attribute(Document document,
Reporter reporter,
int line,
int column)
唯一のコンストラクタです。 |
メソッドの概要 | |
String[] |
getBaseClass()
クラス名を返します。 |
String |
getBaseId()
ID を返します。 |
String |
getBaseTitle()
タイトルを返します。 |
Style |
getStyle()
スタイルを返します。 |
protected void |
reportMessage(int type,
String key,
String[] args)
メッセージを報告します。 |
boolean |
setAttribute(String key,
String value)
指定された属性名と属性値で、属性を設定します。 |
protected boolean |
setBaseAttribute(String key,
String value)
多くのトークンに共通する基本属性を設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected int columnNumber
protected Document document
protected int lineNumber
protected Reporter reporter
コンストラクタの詳細 |
public Attribute(Document document, Reporter reporter, int line, int column)
document
- ドキュメント情報reporter
- エラーレポータline
- 行番号 (1
から)、
特定できない場合は 0
column
- カラム位置 (1
から)、
特定できない場合は 0
メソッドの詳細 |
public String[] getBaseClass()
public String getBaseId()
public String getBaseTitle()
public Style getStyle()
protected void reportMessage(int type, String key, String[] args)
type
- メッセージのタイプkey
- メッセージリソースのキーargs
- メッセージ追加引数、
必要ない場合は null
public boolean setAttribute(String key, String value) throws IllegalArgumentException
true
を、
存在しない場合は false
を返します。
渡される key
は、必ず小文字に変換されています。
key
- 属性名value
- 属性値
true
、
それ以外の場合は false
IllegalArgumentException
protected boolean setBaseAttribute(String key, String value) throws IllegalArgumentException
key
- 属性名value
- 属性値
true
、
それ以外の場合は false
IllegalArgumentException
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'