net.exegetic.markout.patterns
Class WikiWordPattern

java.lang.Object
  extended by net.exegetic.markout.patterns.AbstractFreeLinkPattern
      extended by net.exegetic.markout.patterns.WikiWordPattern
All Implemented Interfaces:
FreeLinkPattern

public class WikiWordPattern
extends AbstractFreeLinkPattern

This class provides WikiWords. And yeah, it's a little cheap that this class extends AbstractFreeLinkPattern, instead of implementing the CamelCaseFoLife interface or something, but we won't tell if you don't.

Author:
Nathan Winant

Field Summary
 
Fields inherited from class net.exegetic.markout.patterns.AbstractFreeLinkPattern
RESOURCE_NAME_REGEX
 
Constructor Summary
WikiWordPattern()
          Constructs an empty WikiWordPattern.
WikiWordPattern(java.lang.String replacementPattern)
          Constructs a WikiWordPattern and sets the replacement pattern.
 
Method Summary
 java.lang.String getMatcherPattern()
          Returns the matcher patten.
 
Methods inherited from class net.exegetic.markout.patterns.AbstractFreeLinkPattern
getMarkdownReplacementPattern, getReplacementPattern, setReplacementPattern, wrapInBrackets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiWordPattern

public WikiWordPattern()
Constructs an empty WikiWordPattern.


WikiWordPattern

public WikiWordPattern(java.lang.String replacementPattern)
Constructs a WikiWordPattern and sets the replacement pattern.

Parameters:
replacementPattern - Replacement pattern
Method Detail

getMatcherPattern

public java.lang.String getMatcherPattern()
Returns the matcher patten. This will return [A-Z]+[a-z]+[A-Z][A-Za-z]*.

Specified by:
getMatcherPattern in interface FreeLinkPattern
Overrides:
getMatcherPattern in class AbstractFreeLinkPattern
Returns:
Matcher pattern


Copyright © 2007 das markout Projekt. All Rights Reserved.