public class SearchSourceBean extends AbstractAttributeReadId<String> implements SearchSource
SearchSource
as JAXB-ready Java-Bean.Modifier and Type | Field and Description |
---|---|
private String |
id |
private String |
title |
private String |
urlPrefix |
ID_ANY
Constructor and Description |
---|
SearchSourceBean()
The constructor.
|
SearchSourceBean(SearchSource template)
The copy constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
This method gets the ID of this source.
|
String |
getTitle()
This method gets the display-name of this source.
|
String |
getUrlPrefix()
This method gets the prefix for the URL pointing to the content of a
SearchEntry . |
void |
setId(String id) |
void |
setTitle(String title) |
void |
setUrlPrefix(String urlPrefix) |
String |
toString() |
equals, hashCode
private String title
getTitle()
private String urlPrefix
getUrlPrefix()
public SearchSourceBean()
public SearchSourceBean(SearchSource template)
template
- is the SearchSource
to copy.public String getId()
entry
.
A SearchQuery
can be restricted to specific sources via their IDs.getId
in interface SearchSource
getId
in interface AttributeReadId<String>
SearchEntry.getSource()
public String getTitle()
SearchQuery
is performed so the user can
restrict his search to specific sources. net.sf.mmm.util.nls.api
.getTitle
in interface SearchSource
public String getUrlPrefix()
SearchEntry
. The URL that links to this content is build by appending the
URI
of the SearchEntry
to this prefix. getUrlPrefix
in interface SearchSource
public void setId(String id)
id
- is the id to setpublic void setTitle(String title)
title
- is the title to setpublic void setUrlPrefix(String urlPrefix)
urlPrefix
- is the urlPrefix to setpublic String toString()
toString
in class AbstractAttributeReadId<String>
Copyright © 2001–2016 mmm-Team. All rights reserved.