|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.starlink.plastic.BasicApplication
Basic implementation of the PlasticApplication interface. Could serve as a superclass for other concrete implementations.
Field Summary |
Fields inherited from interface org.votech.plastic.PlasticListener |
CURRENT_VERSION |
Constructor Summary | |
BasicApplication(String name)
Constructor. |
Method Summary | |
String |
getName()
Returns the application generic name. |
URI[] |
getSupportedMessages()
Returns the messages which the application will support. |
Object |
perform(URI sender,
URI msg,
List args)
Request that the application perform an action based on a message. |
void |
setDescription(String description)
Sets the application description text. |
void |
setIconUrl(String iconUrl)
Sets the icon URL for the application. |
void |
setIvorn(String ivorn)
Sets the IVORN for the application. |
void |
setVersion(String version)
Sets the PLASTIC version string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicApplication(String name)
name
- registered application nameMethod Detail |
public String getName()
PlasticApplication
getName
in interface PlasticApplication
public void setDescription(String description)
description
- description textpublic void setVersion(String version)
PlasticUtils.PLASTIC_VERSION
.
version
- plastic version stringpublic void setIconUrl(String iconUrl)
iconUrl
- icon URLpublic void setIvorn(String ivorn)
ivorn
- IVORNpublic URI[] getSupportedMessages()
PlasticApplication
getSupportedMessages
in interface PlasticApplication
public Object perform(URI sender, URI msg, List args)
PlasticListener
perform
in interface PlasticListener
sender
- the ID of the originating application.msg
- the URI representing the action.args
- any arguments to pass.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |