|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
org.davesag.generica.core.AbstractContent
org.davesag.generica.core.Link
The Link bean represents a titled url linking to an external
site.
| Field Summary | |
protected boolean |
itsValid
is the url of the link a valid url? |
protected String |
theDescription
a Description of this link |
protected String |
theTitle
the title for this link |
protected String |
theUrl
The Url of this Link |
| Fields inherited from class org.davesag.generica.core.AbstractContent |
theCountryCode, theLanguageCode |
| Fields inherited from class org.davesag.generica.core.AbstractDateStamped |
theCreated, theId, theLastModified |
| Constructor Summary | |
Link()
null constructor required by hibernate. |
|
Link(String title,
String url,
String desc,
Locale loc)
Constructor that takes a title, url, description and Locale. |
|
Link(String title,
String url,
String desc,
String lang)
Constructor that takes a title, url, description and language code. |
|
| Method Summary | |
boolean |
equals(Object o)
Tests if the supplied object is equal to this Link. |
String |
getDescription()
Returns a short description. |
String |
getTitle()
get the title of this link. |
String |
getUrl()
get the url of this link. |
Boolean |
getValid()
Checks that the url of this Link has been marked as a valid url. |
int |
hashcode()
the hashcode. |
void |
invalidate()
The URL of this Link has been checked and you wish to assert that it is not valid. |
boolean |
isValid()
Checks that the url of this Link has been marked as a valid url. |
void |
setDescription(String desc)
Set a short description of this Link. |
void |
setTitle(String title)
Set the Title for this Link. |
void |
setUrl(String url)
Set an associated url for this Link. |
void |
setValid(Boolean v)
Set the validity of this url. |
String |
toString()
get a simple string representation of this link. |
void |
validate()
The URL of this Link has been checked and you wish to assert that it is valid. |
| Methods inherited from class org.davesag.generica.core.AbstractContent |
getCountryCode, getLanguageCode, getLocale, setCountryCode, setLanguageCode, setLocale |
| Methods inherited from class org.davesag.generica.core.AbstractDateStamped |
getCreated, getId, getLastModified, setCreated, setId, setLastModified, setTemplateId |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.DateStamped |
getCreated, getLastModified, setCreated, setLastModified |
| Field Detail |
protected String theUrl
protected String theDescription
protected String theTitle
protected boolean itsValid
| Constructor Detail |
public Link()
public Link(String title,
String url,
String desc,
String lang)
title - The title of the Link.url - The Url of the Link.desc - A verbal deswcription of the Link.lang - The ISO Language code.
public Link(String title,
String url,
String desc,
Locale loc)
title - The title of the Link.url - The Url of the Link.desc - A verbal deswcription of the Link.loc - The Locale.| Method Detail |
public String getUrl()
public void setUrl(String url)
url - A url for this Link.public String getDescription()
public void setDescription(String desc)
desc - A description of this Link.public String getTitle()
public void setTitle(String title)
title - The Title of this Link.public boolean isValid()
LinkPeer.validate(net.sf.hibernate.Session, org.davesag.generica.core.Link)public Boolean getValid()
is
* methods. It's also used by hibernate.
public void setValid(Boolean v)
v - The Boolean value to set.public void validate()
LinkPeer.validate(net.sf.hibernate.Session, org.davesag.generica.core.Link)public void invalidate()
LinkPeer.validate(net.sf.hibernate.Session, org.davesag.generica.core.Link)public String toString()
toString in class AbstractContentpublic boolean equals(Object o)
equals in class AbstractContento - The object to test against this Link. Must also be a Link to
make sense.
public int hashcode()
hashcode in class AbstractContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||