Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,18 @@ public final void addWikiPage(@Nonnull String page) {
wikiURL = Optional.of(getAddon().getWikiURL().replace("%item%", page));
}

/**
* This method assign the given wiki URL to this Item.
*
* @param url
* The associated wiki page URL.
*/
public final void addCustomWikiPage(@Nonnull String url) {
Validate.notNull(url, "Wiki URL cannot be null.");
Validate.isTrue(getState() != ItemState.UNREGISTERED, "Wiki page can only be added after item has been registered.");
wikiURL = Optional.of(url);
}

/**
* This method returns the wiki page that has been assigned to this item.
* It will return null, if no wiki page was found.
Expand Down