uk.ac.starlink.plastic
Class ApplicationItem

java.lang.Object
  extended byuk.ac.starlink.plastic.ApplicationItem

public class ApplicationItem
extends Object

Represents an application which has been registered with a PLASTIC hub. Instances of this class are just designed to hold information, you can't actually invoke their methods.

Since:
10 Apr 2006
Author:
Mark Taylor

Constructor Summary
ApplicationItem(URI id, String name, List supportedMessages)
          Constructor.
 
Method Summary
 boolean equals(Object other)
          Equality is assessed only on the value of the ID attribute.
 URI getId()
          Returns the unique registration ID for this application.
 String getName()
          Returns the application name.
 List getSupportedMessages()
          Returns the list of messages supported by this application
 String getTag()
          Returns the tag string for this object.
 int hashCode()
           
 void setTag(String tag)
          Sets the tag for this object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationItem

public ApplicationItem(URI id,
                       String name,
                       List supportedMessages)
Constructor.

Parameters:
id - application ID
name - application type name
supportedMessages - list of URIs representing messages which are understood by this application
Method Detail

getId

public URI getId()
Returns the unique registration ID for this application.

Returns:
registration ID

getName

public String getName()
Returns the application name.

Returns:
application name

getSupportedMessages

public List getSupportedMessages()
Returns the list of messages supported by this application

Returns:
list of message id URIs

setTag

public void setTag(String tag)
Sets the tag for this object. This is intended to be a human-readable but unique string. It may be used as the return value of toString().

Parameters:
tag - short tag string

getTag

public String getTag()
Returns the tag string for this object.

Returns:
tag short tag string

toString

public String toString()

equals

public boolean equals(Object other)
Equality is assessed only on the value of the ID attribute.


hashCode

public int hashCode()


Copyright © 2006 \\ CLRC: Central Laboratory of the Research Councils. All Rights Reserved.