|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tmf.impl.AbstractSource
public abstract class AbstractSource
A partial implementation of Source.
| Field Summary |
|---|
| Fields inherited from interface org.gcube.data.tmf.api.Source |
|---|
TREE_TYPE |
| Constructor Summary | |
|---|---|
AbstractSource(String id)
Creates an instance with a given identifier. |
|
| Method Summary | |
|---|---|
Long |
cardinality()
Returns the cardinality of the source. |
Calendar |
creationTime()
Returns the creation time of the source. |
String |
description()
Returns the free-form description of the source. |
Environment |
environment()
Returns the local Environment of the plugin. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
String |
id()
Returns the identifier of the source. |
boolean |
isUser()
Returns true if the source is a user-level source,
false if it is instead system-level source. |
Calendar |
lastUpdate()
Returns the time in which the source was last modified. |
SourceLifecycle |
lifecycle()
Returns the SourceLifecycle. |
String |
name()
Returns the name of the source. |
SourceNotifier |
notifier()
Returns the SourceNotifier. |
SourceReader |
reader()
Returns the SourceReader. |
void |
setCardinality(Long cardinality)
Sets the cardinality of the source, changing automatically the time of last modification of the source. |
Calendar |
setCreationTime(Calendar time)
Sets the creation time of the source. |
void |
setDescription(String description)
Sets a free-form description for the source. |
void |
setEnvironment(Environment env)
Sets the local Environment of the plugin. |
void |
setLastUpdate(Calendar time)
Sets the time in which the source was last modified. |
void |
setLifecycle(SourceLifecycle lifecycle)
Sets the SourceLifecycle. |
void |
setName(String name)
Sets the name of the source. |
void |
setNotifier(SourceNotifier notifier)
Returns the SourceNotifier. |
void |
setReader(SourceReader reader)
Sets the SourceReader |
void |
setUser(boolean isUser)
Marks the source as a user or as a system source. |
void |
setWriter(SourceWriter writer)
Sets the SourceWriter |
String |
toString()
|
SourceWriter |
writer()
Returns the SourceWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gcube.data.tmf.api.Source |
|---|
properties, types |
| Constructor Detail |
|---|
public AbstractSource(String id)
throws InvalidRequestException
id - the identifier
InvalidRequestException - if the identifier is null| Method Detail |
|---|
public String id()
id in interface Sourcepublic String name()
name in interface Sourcepublic void setName(String name)
name - the namepublic String description()
description in interface Sourcepublic void setDescription(String description)
description - the descriptionpublic Calendar creationTime()
creationTime in interface Sourcepublic Calendar setCreationTime(Calendar time)
time - the creation timepublic void setUser(boolean isUser)
isUser - true if the source is a user source, false
otherwisepublic boolean isUser()
true if the source is a user-level source,
false if it is instead system-level source.
isUser in interface Sourcetrue if the source is a user-level source,
false otherwisepublic Long cardinality()
cardinality in interface Sourcepublic void setCardinality(Long cardinality)
cardinality - the cardinalitysetLastUpdate(Calendar)public Calendar lastUpdate()
lastUpdate in interface Sourcepublic void setLastUpdate(Calendar time)
An actual change in the value of this property notifies the service of a
SourceEvent.CHANGE event.
time - the last modification timepublic SourceLifecycle lifecycle()
SourceLifecycle.
lifecycle in interface Sourcepublic void setLifecycle(SourceLifecycle lifecycle)
SourceLifecycle.
lifecycle - the lifecyclepublic SourceReader reader()
SourceReader.
reader in interface Sourcenull if the source is write-onlypublic void setReader(SourceReader reader)
SourceReader
reader - the readerpublic void setWriter(SourceWriter writer)
SourceWriter
writer - the writerpublic SourceWriter writer()
SourceWriter.
writer in interface Sourcenull if the source is read-onlypublic void setNotifier(SourceNotifier notifier)
SourceNotifier.
This is invoked by the service prior to source initialisation. The service subscribes to the provider so as to receive notification of events fired from the plugin.
setNotifier in interface Sourcenotifier - the notifierpublic SourceNotifier notifier()
SourceNotifier.
notifier in interface Sourcepublic Environment environment()
Environment of the plugin.
environment in interface Sourcepublic void setEnvironment(Environment env)
Environment of the plugin.
It is invoked by the service prior to source initialisation.
setEnvironment in interface Sourceenv - the
environmentpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||