org.xwiki.rendering.wikimodel.xwiki.xwiki20
Class XWikiReferenceParser
java.lang.Object
org.xwiki.rendering.wikimodel.WikiReferenceParser
org.xwiki.rendering.wikimodel.xwiki.xwiki20.XWikiReferenceParser
- All Implemented Interfaces:
- IWikiReferenceParser
public class XWikiReferenceParser
- extends WikiReferenceParser
- Since:
- 4.0M1
- Version:
- $Id: 4e16c533c61978c07df1ae9af11a7f0286cb7267 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XWikiReferenceParser
public XWikiReferenceParser()
getLabel
protected String getLabel(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 String getLink(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(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 String[] splitToChunks(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 © 2004–2014 XWiki. All rights reserved.