|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.help.MockHelpUrlsParser
public class MockHelpUrlsParser
Constructor Summary | |
---|---|
MockHelpUrlsParser()
|
Method Summary | |
---|---|
MockHelpUrl |
createUrl(String key,
String url)
|
MockHelpUrl |
createUrlOd(String key,
String url)
|
HelpUrlsParser |
defaultUrl(String url,
String title)
Returns a new parser that will use the passed URL (title) in URLs that don't have a URL (title) set. |
HelpUrl |
getDefault()
|
HelpUrl |
getGeneratedDefault(String value)
|
HelpUrl |
getGeneratedUrl(HelpUrl url,
String value)
|
HelpUrlsParser |
onDemand(boolean onDemand)
Returns a new parser that will either use or ignore .ondemand properties. |
HelpUrls |
parse(Map<String,String> properties)
Parse the passed properties and return an equivalent HelpUrls instance. |
HelpUrls |
parse(Properties properties)
Parse the passed properties and return an equivalent HelpUrls instance. |
HelpUrls |
parse(Properties externalProperties,
Properties internalProperties)
Parse the passed properties and return an equivalent HelpUrls instance. |
MockHelpUrlsParser |
register(HelpUrl url)
|
MockHelpUrlsParser |
registerOd(HelpUrl url)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockHelpUrlsParser()
Method Detail |
---|
@Nonnull public HelpUrlsParser onDemand(boolean onDemand)
HelpUrlsParser
.ondemand
properties.
onDemand
in interface HelpUrlsParser
onDemand
- true
if the parser should use .ondemand
properties, or false
if they
should be ignored.
.ondemand
properties@Nonnull public HelpUrlsParser defaultUrl(String url, String title)
HelpUrlsParser
defaultUrl
in interface HelpUrlsParser
url
- the default URL.title
- the default title of the URL.
HelpUrl
configured.@Nonnull public HelpUrls parse(@Nonnull Properties properties)
HelpUrlsParser
HelpUrls
instance.
parse
in interface HelpUrlsParser
properties
- the properties to parse.
HelpUrls
representation of the passed properties.@Nonnull public HelpUrls parse(@Nonnull Properties externalProperties, @Nonnull Properties internalProperties)
HelpUrlsParser
HelpUrls
instance.
This method should not be called by plugins as the format of internalProperties
is not documented
and is subject to change.
parse
in interface HelpUrlsParser
externalProperties
- the properties to parse.internalProperties
- the internal properties to parse. These properties follow a different format to the
that documented on this interface and should only be used by JIRA internally.
HelpUrls
representation of the passed properties.@Nonnull public HelpUrls parse(@Nonnull Map<String,String> properties)
HelpUrlsParser
HelpUrls
instance.
parse
in interface HelpUrlsParser
properties
- the properties to parse.
HelpUrls
representation of the passed properties.public HelpUrl getDefault()
public MockHelpUrlsParser registerOd(HelpUrl url)
public MockHelpUrlsParser register(HelpUrl url)
public MockHelpUrl createUrl(String key, String url)
public MockHelpUrl createUrlOd(String key, String url)
public HelpUrl getGeneratedUrl(HelpUrl url, String value)
public HelpUrl getGeneratedDefault(String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |