|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.util.TextFormat
文字列を適切にフォーマットするためのユーティリティです。
メソッドの概要 | |
static String |
convertXhtml(Reporter reporter,
int line,
int column,
String value,
boolean before,
boolean after,
boolean abbr,
boolean reference)
指定された文字列を、XHTML のコンテンツに準ずる変換をして返します。 |
static String |
convertXhtml(String value,
boolean before,
boolean after,
boolean abbr,
boolean reference)
指定された文字列を、XHTML のコンテンツに準ずる変換をして返します。 |
static boolean |
hasCharacters(String value)
空白文字以外の文字を持っているかを返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
public static String convertXhtml(Reporter reporter, int line, int column, String value, boolean before, boolean after, boolean abbr, boolean reference)
現在、実体参照は、XHTML 1.0 で定義されている物が有効です。
reporter
- エラーレポータline
- 行番号 (1
から)column
- カラム位置 (1
から)value
- 処理対象の文字列before
- 文字列の最初にあるスペースを取り除く場合は
true
、それ以外は false
after
- 文字列の最後にあるスペースを取り除く場合は
true
、それ以外は false
abbr
- 連続するスペースを詰める場合は
true
、それ以外は false
reference
- 参照を解決する場合は
true
、それ以外は false
public static String convertXhtml(String value, boolean before, boolean after, boolean abbr, boolean reference)
現在、実体参照は、XHTML 1.0 で定義されている物が有効です。
value
- 処理対象の文字列before
- 文字列の最初にあるスペースを取り除く場合は
true
、それ以外は false
after
- 文字列の最後にあるスペースを取り除く場合は
true
、それ以外は false
abbr
- 連続するスペースを詰める場合は
true
、それ以外は false
reference
- 参照を解決する場合は
true
、それ以外は false
public static boolean hasCharacters(String value)
value
- 処理対象の文字列
true
それ以外の場合は false
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'