lazyj.page.tags
Class Dash

java.lang.Object
  extended by lazyj.page.tags.Dash
All Implemented Interfaces:
StringFormat

public final class Dash
extends java.lang.Object
implements StringFormat

dash replaces all non-alphanumeric sequences of characters each with a single dash.

Since:
2006-10-13
Author:
costing
See Also:
Under

Constructor Summary
Dash()
           
 
Method Summary
static java.lang.String format(java.lang.String sValue)
          Publicly available method to transform a string into a dashed representation of it, good to be used in rewritten URLs.
 java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String sValue)
          Dashify a string (leave all the letters and digits, everything else is colapsed into '-')
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dash

public Dash()
Method Detail

format

public java.lang.String format(java.lang.String sTag,
                               java.lang.String sOption,
                               java.lang.String sValue)
Dashify a string (leave all the letters and digits, everything else is colapsed into '-')

Specified by:
format in interface StringFormat
Parameters:
sTag - ignored
sOption - always "dash"
sValue - original string
Returns:
dashified version of the original string

format

public static final java.lang.String format(java.lang.String sValue)
Publicly available method to transform a string into a dashed representation of it, good to be used in rewritten URLs.

Parameters:
sValue - string to format
Returns:
dashified version of the string