|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthewebsemantic.binding.RdfBean<SourceAdaptor>
eu.scape_project.watch.domain.SourceAdaptor
public class SourceAdaptor
A software unit that is able to collect specific information from a specific
Source
and has the capability to convert/adapt it into a
representation that fits the internal data model of Watch.
Constructor Summary | |
---|---|
SourceAdaptor()
Create a new empty source adaptor. |
|
SourceAdaptor(String name,
String version,
Source source,
Map<String,String> configuration)
Create a new source adaptor. |
Method Summary | |
---|---|
static String |
createId(String name,
String version)
Create a unique Id based on the name and version. |
boolean |
equals(Object obj)
|
Map<String,String> |
getConfiguration()
|
String |
getId()
|
String |
getName()
|
Source |
getSource()
|
String |
getVersion()
|
int |
hashCode()
|
void |
setConfiguration(Map<String,String> configuration)
|
void |
setName(String name)
|
void |
setSource(Source source)
|
void |
setVersion(String version)
Set version and update Id. |
Methods inherited from class thewebsemantic.binding.RdfBean |
---|
asIndividual, delete, fill, fill, load, query, refresh, save |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceAdaptor()
public SourceAdaptor(String name, String version, Source source, Map<String,String> configuration)
name
- A name that uniquely identifies the adaptor, regardless of the
version.version
- The version of the adaptor, preferably in the 1.0.1 format.source
- The source from which this adaptor fetchs information from.configuration
- The source adaptor configurationMethod Detail |
---|
public static String createId(String name, String version)
name
- The SourceAdaptor
name.version
- The SourceAdaptor
version.
public String getName()
public void setName(String name)
public String getId()
public String getVersion()
public Map<String,String> getConfiguration()
public void setConfiguration(Map<String,String> configuration)
public void setVersion(String version)
version
- The version of the adaptor, preferably in the 1.0.1 format.public Source getSource()
public void setSource(Source source)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |