net.exegetic.markout.patterns
Class CategoryPattern

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

public class CategoryPattern
extends AbstractFreeLinkPattern

This class provides the [[category:RESOURCE_NAME]] free link.

Author:
Nathan Winant

Field Summary
 
Fields inherited from class net.exegetic.markout.patterns.AbstractFreeLinkPattern
RESOURCE_NAME_REGEX
 
Constructor Summary
CategoryPattern()
          Constructs an empty CategoryPattern.
CategoryPattern(java.lang.String replacementPattern)
          Constructs a CategoryPattern 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

CategoryPattern

public CategoryPattern()
Constructs an empty CategoryPattern.


CategoryPattern

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

Parameters:
replacementPattern - Replacement pattern
Method Detail

getMatcherPattern

public java.lang.String getMatcherPattern()
Returns the matcher patten. This will return category:RESOURCE_NAME_REGEX.

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


Copyright © 2007 das markout Projekt. All Rights Reserved.