|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.fisheye.spi.admin.data.SimpleLinker
public class SimpleLinker
Constructor Summary | |
---|---|
SimpleLinker(java.util.regex.Pattern regex,
java.lang.String href)
Create a simple linker. |
|
SimpleLinker(SimpleLinker sl)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
|
java.lang.String |
getHref()
|
java.util.regex.Pattern |
getRegex()
|
int |
hashCode()
|
static boolean |
isValidHref(java.lang.String href)
Whether href is a valid linker URL, meaning it must include the protocol as a prefix, e.g., "http://". |
void |
setDescription(java.lang.String description)
Set the linker description. |
void |
setHref(java.lang.String href)
Set the linker's href attribute. |
void |
setRegex(java.util.regex.Pattern regex)
Set the regex used to match a linker. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLinker(java.util.regex.Pattern regex, java.lang.String href)
See setRegex(java.util.regex.Pattern)
and setHref(String)
for restrictions on the arguments.
public SimpleLinker(SimpleLinker sl)
Method Detail |
---|
public java.util.regex.Pattern getRegex()
public void setRegex(java.util.regex.Pattern regex)
java.lang.NullPointerException
- if regex is nullpublic java.lang.String getHref()
public void setHref(java.lang.String href)
java.lang.NullPointerException
- if href is null
java.lang.IllegalArgumentException
- if href isn't a valid URL (see isValidHref(String)
public static boolean isValidHref(java.lang.String href)
java.lang.NullPointerException
- if href is nullpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description, or null if you want to
clear the description.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |