Version: 1.1.1

org.biomoby.shared
Class MobyNamespace

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

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

A container representing a namespace used in the Moby registry.

This container is used mainly to register a new namespace in a Moby registry.

Version:
$Id: MobyNamespace.java,v 1.14 2010/05/13 15:54:16 gordonp Exp $
Author:
Martin Senger

Constructor Summary
MobyNamespace(String name)
          Default constructor.
 
Method Summary
 int compareTo(MobyNamespace obj)
           
 boolean equals(Object o)
           
 String format(int indent)
           
 String getAuthority()
           
static Comparator getAuthorityComparator()
           
 String getDescription()
           
 String getEmailContact()
           
 String getId()
           
 String getLSID()
           
 String getName()
           
static MobyNamespace getNamespace(String ns)
           
static MobyNamespace getNamespace(String ns, Registry reg)
           
 Registry getRegistry()
           
 void setAuthority(String value)
           
 void setDescription(String value)
           
 void setEmailContact(String value)
           
 void setId(String value)
           
 void setLSID(String value)
           
 void setRegistry(Registry reg)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobyNamespace

public MobyNamespace(String name)
Default constructor. Other characteristics are empty - which is usually wrong - therefore use 'set' method to fill them.

Method Detail

getRegistry

public Registry getRegistry()

setRegistry

public void setRegistry(Registry reg)

getNamespace

public static MobyNamespace getNamespace(String ns)

getNamespace

public static MobyNamespace getNamespace(String ns,
                                         Registry reg)

getName

public String getName()

getId

public String getId()

setId

public void setId(String value)

getAuthority

public String getAuthority()

setAuthority

public void setAuthority(String value)

getEmailContact

public String getEmailContact()

setEmailContact

public void setEmailContact(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)

toString

public String toString()
Overrides:
toString in class Object

format

public String format(int indent)

compareTo

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

equals

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

getAuthorityComparator

public static Comparator getAuthorityComparator()

Version: 1.1.1

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