org.wikimodel.wem.xwiki.xwiki20
Class XWikiReferenceParser

java.lang.Object
  extended by org.wikimodel.wem.WikiReferenceParser
      extended by org.wikimodel.wem.xwiki.xwiki20.XWikiReferenceParser
All Implemented Interfaces:
IWikiReferenceParser

public class XWikiReferenceParser
extends WikiReferenceParser

Author:
kotelnikov, vmassol, thomas.mortagne

Constructor Summary
XWikiReferenceParser()
           
 
Method Summary
protected  java.lang.String getLabel(java.lang.String[] chunks)
          Extracts the label from the array of chunks and returns it.
protected  java.lang.String getLink(java.lang.String[] chunks)
          Extracts the link from the array of chunks and returns it.
protected  WikiParameters getParameters(java.lang.String[] chunks)
          Extracts parameters part of the original reference and returns it as a WikiParameters.
protected  java.lang.String[] splitToChunks(java.lang.String str)
          Returns the given string split to individual segments
 
Methods inherited from class org.wikimodel.wem.WikiReferenceParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiReferenceParser

public XWikiReferenceParser()
Method Detail

getLabel

protected java.lang.String getLabel(java.lang.String[] chunks)
Description copied from class: WikiReferenceParser
Extracts the label from the array of chunks and returns it.

Overrides:
getLabel in class WikiReferenceParser
Parameters:
chunks - the array of chunks
Returns:
a label extracted from the given array of chunks

getLink

protected java.lang.String getLink(java.lang.String[] chunks)
Description copied from class: WikiReferenceParser
Extracts the link from the array of chunks and returns it.

Overrides:
getLink in class WikiReferenceParser
Parameters:
chunks - the array of chunks
Returns:
a link extracted from the given array of chunks

getParameters

protected WikiParameters getParameters(java.lang.String[] chunks)
Description copied from class: WikiReferenceParser
Extracts parameters part of the original reference and returns it as a WikiParameters.

Overrides:
getParameters in class WikiReferenceParser
Parameters:
chunks - the array of chunks
Returns:
the parameters

splitToChunks

protected java.lang.String[] splitToChunks(java.lang.String str)
Description copied from class: WikiReferenceParser
Returns the given string split to individual segments

Overrides:
splitToChunks in class WikiReferenceParser
Parameters:
str - the string to split
Returns:
the given string split to individual segments


Copyright © 2005-2010. All Rights Reserved.