org.ceryle.wiki
Class WikiConstants

java.lang.Object
  extended by org.ceryle.wiki.WikiConstants

public class WikiConstants
extends Object

A set of static wiki syntax constants and utility methods.

Version:
$Id: WikiConstants.java,v 1.2 2007-06-15 12:10:07 altheim Exp $
Author:
Murray Altheim

Field Summary
static String Bold
          The wiki formatting code for bold ("__").
static String BulletList
          The wiki formatting code for bulleted list item ("* ").
static String DEFAULT_APPNAME
          The default application name for the user wiki.
static String E_Monospace
          The wiki formatting code for end-monospace ("}}").
static String HR
          The wiki formatting code for a horiztonal line or rule ("----").
static String Italic
          The wiki formatting code for italic ("''", two single quotes).
static String NL
          The OS-dependent line separator character.
static String NumberedList
          The wiki formatting code for numbered list item ("# ").
static String S_Monospace
          The wiki formatting code for start-monospace ("{{").
static String SYNTAX_NAME
          The String identifier for JSPWiki syntax, the wiki syntax used within Ceryle.
static String WIKI_ID
          The URI identifier for JSPWiki syntax, the wiki syntax used within Ceryle.
static String WIKI_SHEBANG
          The Wiki "shebang", or MIME magic number String.
static String WIKITAG_REGEX
          A regular expression matching the JSPWiki tag.
 
Constructor Summary
WikiConstants()
           
 
Method Summary
static String getFirstLine()
          Returns the magic number String followed by the syntax name and the URI identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL

public static final String NL
The OS-dependent line separator character.


WIKI_SHEBANG

public static String WIKI_SHEBANG
The Wiki "shebang", or MIME magic number String. The value is "#!wiki".


DEFAULT_APPNAME

public static String DEFAULT_APPNAME
The default application name for the user wiki. The value is "wiki".


WIKITAG_REGEX

public static final String WIKITAG_REGEX
A regular expression matching the JSPWiki tag. The tag begins with the shebang and finishes at the end of line.

See Also:
Constant Field Values

SYNTAX_NAME

public static String SYNTAX_NAME
The String identifier for JSPWiki syntax, the wiki syntax used within Ceryle.


WIKI_ID

public static String WIKI_ID
The URI identifier for JSPWiki syntax, the wiki syntax used within Ceryle.


Bold

public static String Bold
The wiki formatting code for bold ("__"). This follows the JSPWiki convention.


Italic

public static String Italic
The wiki formatting code for italic ("''", two single quotes). This follows the JSPWiki convention.


S_Monospace

public static String S_Monospace
The wiki formatting code for start-monospace ("{{"). This follows the JSPWiki convention.


E_Monospace

public static String E_Monospace
The wiki formatting code for end-monospace ("}}"). This follows the JSPWiki convention.


BulletList

public static String BulletList
The wiki formatting code for bulleted list item ("* "). This follows the JSPWiki convention.


NumberedList

public static String NumberedList
The wiki formatting code for numbered list item ("# "). This follows the JSPWiki convention.


HR

public static String HR
The wiki formatting code for a horiztonal line or rule ("----"). This follows the JSPWiki convention.

Constructor Detail

WikiConstants

public WikiConstants()
Method Detail

getFirstLine

public static String getFirstLine()
Returns the magic number String followed by the syntax name and the URI identifier.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.