net.exegetic.markout.patterns
Class ImagePattern

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

public class ImagePattern
extends AbstractFreeLinkPattern

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

Author:
Nathan Winant

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

Constructor Detail

ImagePattern

public ImagePattern()
Constructs an empty ImagePattern.


ImagePattern

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

Parameters:
replacementPattern - Replacement pattern
Method Detail

getMatcherPattern

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

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

getMarkdownReplacementPattern

public java.lang.String getMarkdownReplacementPattern()
Returns the replacement pattern, wrapped in Markout. This will return an image: ![[[RESOURCE_NAME]]](replacementPattern)

Specified by:
getMarkdownReplacementPattern in interface FreeLinkPattern
Overrides:
getMarkdownReplacementPattern in class AbstractFreeLinkPattern
Returns:
Replacement pattern, wrapped in Markout.


Copyright © 2007 das markout Projekt. All Rights Reserved.