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.

フィールドの概要
static String ALIAS_DELIMITER
           
static String ANCHOR_MARK
           
static String ANCHOR_PREFIX
           
static String ANCHOR_SUFFIX
           
static String LINK_DELIMITER
           
static int LIST_TYPE_NORMAL
           
static int LIST_TYPE_NUMERICAL
           
static int TABLE_TYPE_FOOTER
           
static int TABLE_TYPE_HEADER
           
 
コンストラクタの概要
WikiHelper()
           
 
メソッドの概要
static String beforeSavePage(String contentType, String content)
           
static String deleteParenthesis(String image, String left, String right)
           
static String deleteParenthesis(String image, String left, String right, boolean isWide)
           
static int getListType(String image)
           
static int getTableType(String image)
           
static boolean isEmail(String image)
           
static boolean isImage(String s)
          Discriminates the specifid string represents image file or not.
static boolean isURL(String s)
          Discriminates the specifid string represents URL or not.
static String removeCarriageReturn(String contents)
          remove carriage return
static String setAnchorToHeading(String contents)
          generate anchor data from object hashcode
static String[] split(String image, String delimiter)
           
static String[] splitArgs(String image)
           
static String toJSP(String str)
           
static String toVTL(String str)
           
 
クラス 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.