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 String
getLabel(String[] chunks)
Extracts the label from the array of chunks and returns it.protected String
getLink(String[] chunks)
Extracts the link from the array of chunks and returns it.protected WikiParameters
getParameters(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:WikiReferenceParser
Extracts the label from the array of chunks and returns it.- Overrides:
getLabel
in 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:WikiReferenceParser
Extracts the link from the array of chunks and returns it.- Overrides:
getLink
in 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:WikiReferenceParser
Extracts parameters part of the original reference and returns it as a WikiParameters.- Overrides:
getParameters
in classWikiReferenceParser
- 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 classWikiReferenceParser
- Parameters:
str
- the string to split- Returns:
- the given string split to individual segments
-
-