|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.internal.parser.reference.GenericLinkReferenceParser
@Component @Named(value="default/link") @Singleton public class GenericLinkReferenceParser
Each syntax should have its own resource reference parser. However while we wait for syntax specific parser to be implemented this generic parser should provide a good approximation.
| Field Summary | |
|---|---|
static char |
ESCAPE_CHAR
Escape character to allow "#", "@" and "?" characters in a reference's name. |
static String |
SEPARATOR_ANCHOR
Anchor separator. |
static String |
SEPARATOR_INTERWIKI
Interwiki separator. |
static String |
SEPARATOR_QUERYSTRING
Query String separator. |
| Constructor Summary | |
|---|---|
GenericLinkReferenceParser()
|
|
| Method Summary | |
|---|---|
protected List<String> |
getAllowedURIPrefixes()
|
ResourceReference |
parse(String rawReference)
Parses a resource reference represented (reference to a link, image, attachment, etc) as a String into a ResourceReference object. |
protected String |
parseElementAfterString(StringBuffer content,
String separator)
Find out the element located to the right of the passed separator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SEPARATOR_INTERWIKI
public static final String SEPARATOR_QUERYSTRING
public static final String SEPARATOR_ANCHOR
public static final char ESCAPE_CHAR
| Constructor Detail |
|---|
public GenericLinkReferenceParser()
| Method Detail |
|---|
protected List<String> getAllowedURIPrefixes()
public ResourceReference parse(String rawReference)
ResourceReference object.
parse in interface ResourceReferenceParserrawReference - the string representation of the resource reference to parse (the supported syntax depends
on the parser implementation used)
ResourceReferenceParser.parse(java.lang.String)
protected String parseElementAfterString(StringBuffer content,
String separator)
content - the string to parse. This parameter will be modified by the method to remove the parsed content.separator - the separator string to locate the element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||