|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplaceLinkHandler
Decides what strategy to use when replacing wiki links. Namely decides when two links are equal and what the replacement link will be. This is because there can different strategy when comparing links: for example are 2 links the same if they have different aliases or different query strings?
Method Summary | |
---|---|
boolean |
compare(Link linkToLookFor,
Link linkToReplace)
Compare 2 links. |
Link |
getReplacementLink(Link newLink,
Link linkToReplace)
Compute the link that will be used to replace matching links in the parsed content. |
Method Detail |
---|
boolean compare(Link linkToLookFor, Link linkToReplace)
linkToLookFor
- the link to look forlinkToReplace
- the link to replace
Link getReplacementLink(Link newLink, Link linkToReplace)
newLink
- the link to use to replace the matched link. It's possible that only some
fields are set and the replacement algorithm will compute what the others fields
should belinkToReplace
- the link to be replaced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |