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 $
-
-
Constructor Summary
Constructors Constructor Description XWikiReferenceParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetLabel(String[] chunks)Extracts the label from the array of chunks and returns it.protected StringgetLink(String[] chunks)Extracts the link from the array of chunks and returns it.protected WikiParametersgetParameters(String[] chunks)Extracts parameters part of the original reference and returns it as a WikiParameters.protected String[]splitToChunks(String str)Returns the given string split to individual segments-
Methods inherited from class org.xwiki.rendering.wikimodel.WikiReferenceParser
parse
-
-
-
-
Method Detail
-
getLabel
protected String getLabel(String[] chunks)
Description copied from class:WikiReferenceParserExtracts the label from the array of chunks and returns it.- Overrides:
getLabelin classWikiReferenceParser- 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:WikiReferenceParserExtracts the link from the array of chunks and returns it.- Overrides:
getLinkin classWikiReferenceParser- 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:WikiReferenceParserExtracts parameters part of the original reference and returns it as a WikiParameters.- Overrides:
getParametersin classWikiReferenceParser- Parameters:
chunks- the array of chunks- Returns:
- the parameters
-
splitToChunks
protected String[] splitToChunks(String str)
Description copied from class:WikiReferenceParserReturns the given string split to individual segments- Overrides:
splitToChunksin classWikiReferenceParser- Parameters:
str- the string to split- Returns:
- the given string split to individual segments
-
-