com.atlassian.jira.help
Class MockHelpUrlBuilder

java.lang.Object
  extended by com.atlassian.jira.help.MockHelpUrlBuilder
All Implemented Interfaces:
HelpUrlBuilder

public class MockHelpUrlBuilder
extends Object
implements HelpUrlBuilder

Since:
v6.2.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.help.HelpUrlBuilder
HelpUrlBuilder.Factory
 
Constructor Summary
MockHelpUrlBuilder()
           
MockHelpUrlBuilder(String prefix, String suffix)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockHelpUrlBuilder

public MockHelpUrlBuilder()

MockHelpUrlBuilder

public MockHelpUrlBuilder(String prefix,
                          String suffix)
Method Detail

key

public HelpUrlBuilder key(String key)
Description copied from interface: HelpUrlBuilder
Set the HelpUrl.getKey()} of the generated HelpUrl.

Specified by:
key in interface HelpUrlBuilder
Parameters:
key - the key to set.
Returns:
this object so that the builder may be chained.

alt

public HelpUrlBuilder alt(String alt)
Description copied from interface: HelpUrlBuilder
Set the HelpUrl.getAlt() of the generated HelpUrl.

Specified by:
alt in interface HelpUrlBuilder
Parameters:
alt - the alternate text for the URL.
Returns:
this object so that the builder may be chained.

title

public HelpUrlBuilder title(String title)
Description copied from interface: HelpUrlBuilder
Set the HelpUrl.getTitle() of the generated HelpUrl.

Specified by:
title in interface HelpUrlBuilder
Parameters:
title - the title for the URL.
Returns:
this object so that the builder may be chained.

url

public HelpUrlBuilder url(String url)
Description copied from interface: HelpUrlBuilder
Set the URL of the generated HelpUrl.

Specified by:
url in interface HelpUrlBuilder
Parameters:
url - the URL for the generated HelpUrl.
Returns:
this object so that the builder may be chained.

local

public HelpUrlBuilder local(boolean local)
Description copied from interface: HelpUrlBuilder
Set the HelpUrl.isLocal() of the generated HelpUrl.

Specified by:
local in interface HelpUrlBuilder
Parameters:
local - if the generated HelpUrl is local or not.
Returns:
this object so that the builder may be chained.

copy

public HelpUrlBuilder copy()
Description copied from interface: HelpUrlBuilder
Creates an independent copy of the current state of the builder.

Specified by:
copy in interface HelpUrlBuilder
Returns:
an independent copy of the current builder.

build

public HelpUrl build()
Description copied from interface: HelpUrlBuilder
Generate the HelpUrl associated with this builder.

Specified by:
build in interface HelpUrlBuilder

suffix

public String suffix()

prefix

public String prefix()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

generateUrl

public String generateUrl()

factory

public static HelpUrlBuilder.Factory factory()


Copyright © 2002-2014 Atlassian. All Rights Reserved.