org.seasar.tuigwaa.cms.core.wiki.base
クラス WikiHelper
java.lang.Object
org.seasar.tuigwaa.cms.core.wiki.base.WikiHelper
- public class WikiHelper
- extends Object
- 作成者:
- someda
WikiHelper class This provides utility method for wiki parser and other wiki
related object. Basically, it does not provide node related tasks for
WikiParser but provide only static method which is useful during parsing
phase. Also this might be useful for plugin execution phase.
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIST_TYPE_NORMAL
public static final int LIST_TYPE_NORMAL
- 関連項目:
- 定数フィールド値
LIST_TYPE_NUMERICAL
public static final int LIST_TYPE_NUMERICAL
- 関連項目:
- 定数フィールド値
TABLE_TYPE_HEADER
public static final int TABLE_TYPE_HEADER
- 関連項目:
- 定数フィールド値
TABLE_TYPE_FOOTER
public static final int TABLE_TYPE_FOOTER
- 関連項目:
- 定数フィールド値
ANCHOR_MARK
public static final String ANCHOR_MARK
- 関連項目:
- 定数フィールド値
LINK_DELIMITER
public static final String LINK_DELIMITER
- 関連項目:
- 定数フィールド値
ALIAS_DELIMITER
public static final String ALIAS_DELIMITER
- 関連項目:
- 定数フィールド値
ANCHOR_PREFIX
public static final String ANCHOR_PREFIX
- 関連項目:
- 定数フィールド値
ANCHOR_SUFFIX
public static final String ANCHOR_SUFFIX
- 関連項目:
- 定数フィールド値
WikiHelper
public WikiHelper()
isEmail
public static boolean isEmail(String image)
getListType
public static int getListType(String image)
split
public static String[] split(String image,
String delimiter)
deleteParenthesis
public static String deleteParenthesis(String image,
String left,
String right)
deleteParenthesis
public static String deleteParenthesis(String image,
String left,
String right,
boolean isWide)
beforeSavePage
public static String beforeSavePage(String contentType,
String content)
setAnchorToHeading
public static String setAnchorToHeading(String contents)
- generate anchor data from object hashcode
- パラメータ:
contents
- wiki contents
- 戻り値:
- contents with anchor data
removeCarriageReturn
public static String removeCarriageReturn(String contents)
- remove carriage return
- パラメータ:
contents
- html contents
isImage
public static boolean isImage(String s)
- Discriminates the specifid string represents image file or not. This see
the string as image if it ends with .jpg,.jpeg,.gif,.png,and .bmp
in a case insensitive mannger.
toJSP
public static String toJSP(String str)
toVTL
public static String toVTL(String str)
isURL
public static boolean isURL(String s)
- Discriminates the specifid string represents URL or not.
splitArgs
public static String[] splitArgs(String image)
getTableType
public static int getTableType(String image)
Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.