Version: 1.1.1

org.biomoby.shared
Class MobyServiceType

java.lang.Object
  extended by org.biomoby.shared.MobyServiceType
All Implemented Interfaces:
Comparable<MobyServiceType>, LSIDAccessible

public class MobyServiceType
extends Object
implements Comparable<MobyServiceType>, LSIDAccessible

A container representing a service type used in the Moby registry.

This container is used mainly to register a new service type in a Moby registry, and to find services of a particular type.

Version:
$Id: MobyServiceType.java,v 1.13 2007/12/07 20:26:44 gordonp Exp $
Author:
Martin Senger

Field Summary
static String UNCATEGORIZED_LABEL
           
 
Constructor Summary
MobyServiceType()
          Default constructor.
MobyServiceType(String typeName)
          Normal constructor.
MobyServiceType(String typeName, Registry reg)
           
 
Method Summary
 void addParentName(String value)
           
 int compareTo(MobyServiceType obj)
           
 boolean equals(Object obj)
           
 String format(int indent)
           
 String getAuthority()
           
static Comparator getAuthorityComparator()
          Create a comparator for case-insensitive sorting of service types by their authorities.
 String getDescription()
           
 String getEmailContact()
           
 String getId()
           
 MobyServiceType[] getLineage()
           
 String getLSID()
           
 String getName()
           
 MobyServiceType getParent()
           
 String getParentName()
           
 String[] getParentNames()
           
 Registry getRegistry()
           
static MobyServiceType getServiceType(String className)
           
static MobyServiceType getServiceType(String className, Registry reg)
           
static void loadServiceTypes(URL serviceDefURL, Registry reg)
          Particularly useful for loading namespace definitions from cached file, or refreshing an in-memory cache.
 void setAuthority(String value)
           
 void setDescription(String value)
           
 void setEmailContact(String value)
           
 void setId(String value)
           
 void setLSID(String value)
           
 void setName(String value)
           
 void setParentNames(String[] value)
           
 void setRegistry(Registry reg)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNCATEGORIZED_LABEL

public static final String UNCATEGORIZED_LABEL
See Also:
Constant Field Values
Constructor Detail

MobyServiceType

public MobyServiceType()
Default constructor.


MobyServiceType

public MobyServiceType(String typeName)
Normal constructor. Other characteristics are empty - which is usually wrong - therefore use 'set' method to fill them.


MobyServiceType

public MobyServiceType(String typeName,
                       Registry reg)
Method Detail

compareTo

public int compareTo(MobyServiceType obj)
Specified by:
compareTo in interface Comparable<MobyServiceType>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getRegistry

public Registry getRegistry()

setRegistry

public void setRegistry(Registry reg)

loadServiceTypes

public static void loadServiceTypes(URL serviceDefURL,
                                    Registry reg)
                             throws Exception
Particularly useful for loading namespace definitions from cached file, or refreshing an in-memory cache.

Throws:
Exception

getServiceType

public static MobyServiceType getServiceType(String className)

getServiceType

public static MobyServiceType getServiceType(String className,
                                             Registry reg)

getName

public String getName()

setName

public void setName(String value)

getId

public String getId()

setId

public void setId(String value)

getLSID

public String getLSID()
Specified by:
getLSID in interface LSIDAccessible

setLSID

public void setLSID(String value)

getDescription

public String getDescription()

setDescription

public void setDescription(String value)

getParentName

public String getParentName()

getParent

public MobyServiceType getParent()

getLineage

public MobyServiceType[] getLineage()

getParentNames

public String[] getParentNames()

setParentNames

public void setParentNames(String[] value)

addParentName

public void addParentName(String value)

getEmailContact

public String getEmailContact()

setEmailContact

public void setEmailContact(String value)

getAuthority

public String getAuthority()

setAuthority

public void setAuthority(String value)

toString

public String toString()
Overrides:
toString in class Object

format

public String format(int indent)

getAuthorityComparator

public static Comparator getAuthorityComparator()
Create a comparator for case-insensitive sorting of service types by their authorities.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010