public class MockHelpUrlBuilder extends Object implements HelpUrlBuilder
HelpUrlBuilder.Factory
Constructor and Description |
---|
MockHelpUrlBuilder() |
MockHelpUrlBuilder(String prefix,
String suffix) |
Modifier and Type | Method and Description |
---|---|
HelpUrlBuilder |
alt(String alt)
Set the
HelpUrl.getAlt() of the generated HelpUrl . |
HelpUrl |
build()
Generate the
HelpUrl associated with this builder. |
HelpUrlBuilder |
copy()
Creates an independent copy of the current state of the builder.
|
HelpUrlBuilder |
description(String description)
Set the
HelpUrl.getDescription() of the generated HelpUrl . |
boolean |
equals(Object o) |
static HelpUrlBuilder.Factory |
factory() |
String |
generateUrl() |
int |
hashCode() |
HelpUrlBuilder |
key(String key)
Set the
HelpUrl.getKey() } of the generated HelpUrl . |
HelpUrlBuilder |
local(boolean local)
Set the
HelpUrl.isLocal() of the generated HelpUrl . |
String |
prefix() |
String |
suffix() |
HelpUrlBuilder |
title(String title)
Set the
HelpUrl.getTitle() of the generated HelpUrl . |
String |
toString() |
HelpUrlBuilder |
url(String url)
Set the URL of the generated
HelpUrl . |
public HelpUrlBuilder key(String key)
HelpUrlBuilder
HelpUrl.getKey()
} of the generated HelpUrl
.key
in interface HelpUrlBuilder
key
- the key to set.public HelpUrlBuilder alt(String alt)
HelpUrlBuilder
HelpUrl.getAlt()
of the generated HelpUrl
.alt
in interface HelpUrlBuilder
alt
- the alternate text for the URL.public HelpUrlBuilder description(String description)
HelpUrlBuilder
HelpUrl.getDescription()
of the generated HelpUrl
.description
in interface HelpUrlBuilder
description
- the description for the URL.public HelpUrlBuilder title(String title)
HelpUrlBuilder
HelpUrl.getTitle()
of the generated HelpUrl
.title
in interface HelpUrlBuilder
title
- the title for the URL.public HelpUrlBuilder url(String url)
HelpUrlBuilder
HelpUrl
.url
in interface HelpUrlBuilder
url
- the URL for the generated HelpUrl
.public HelpUrlBuilder local(boolean local)
HelpUrlBuilder
HelpUrl.isLocal()
of the generated HelpUrl
.local
in interface HelpUrlBuilder
local
- if the generated HelpUrl
is local or not.public HelpUrlBuilder copy()
HelpUrlBuilder
copy
in interface HelpUrlBuilder
public HelpUrl build()
HelpUrlBuilder
HelpUrl
associated with this builder.build
in interface HelpUrlBuilder
public String suffix()
public String prefix()
public String generateUrl()
public static HelpUrlBuilder.Factory factory()
Copyright © 2002-2015 Atlassian. All Rights Reserved.