Version: 1.1.1

org.biomoby.registry.meta
Class Registry

java.lang.Object
  extended by org.biomoby.registry.meta.Registry

public class Registry
extends Object

A container for meta data about a BioMoby registry.

It includes properties allowing to access a BioMoby registry - these properties must be always present: synonym, endpoint (URL) and namespce (URI), and some additional properties (not always present).

A usual way how to obtain these containers is through implementation of the Registries interface. Therefore, if you wish to provide a richer container (with more properties) you should have your own implementation of that interface.

Version:
$Id: Registry.java,v 1.4 2008/02/22 09:37:39 senger Exp $
Author:
Martin Senger

Constructor Summary
Registry(String synonym, String endpoint, String namespace)
          A minimal constructor
Registry(String synonym, String endpoint, String namespace, String longName, String contact, boolean isPublic, String description)
          A full constructor
 
Method Summary
static URL findResourceURL(Registry reg, String resourceName)
          Learn the RDF location for resources of the registry.
 String getContact()
          Get a contact person who is in charge of this BioMoby registry.
 String getDescription()
          Get a human-readable description of this BioMoby registry.
 String getEndpoint()
          Get an endpoint (a stringified URL) of this BioMoby registry.
 String getLongName()
          Get a full name of this BioMoby registry.
 String getNamespace()
          Get a namespace (a URI) of this BioMoby registry.
 String getSynonym()
          Get a synonym (an abbreviation) of this BioMoby registry.
 boolean isPublic()
          Return true if this BioMoby registry is open without any access restrictions.
 void setContact(String value)
           
 void setDescription(String value)
           
 void setEndpoint(String value)
           
 void setLongName(String value)
           
 void setNamespace(String value)
           
 void setPublic(boolean value)
           
 void setSynonym(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Registry

public Registry(String synonym,
                String endpoint,
                String namespace)
A minimal constructor


Registry

public Registry(String synonym,
                String endpoint,
                String namespace,
                String longName,
                String contact,
                boolean isPublic,
                String description)
A full constructor

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSynonym

public String getSynonym()
Get a synonym (an abbreviation) of this BioMoby registry. It (reasonably) uniquely identifis this registry (usually within a given implementation).


setSynonym

public void setSynonym(String value)

getEndpoint

public String getEndpoint()
Get an endpoint (a stringified URL) of this BioMoby registry.


setEndpoint

public void setEndpoint(String value)

getNamespace

public String getNamespace()
Get a namespace (a URI) of this BioMoby registry.


setNamespace

public void setNamespace(String value)

getLongName

public String getLongName()
Get a full name of this BioMoby registry. The name is often accompanied by its geographical location.

Returns:
full name or an empty string

setLongName

public void setLongName(String value)

getContact

public String getContact()
Get a contact person who is in charge of this BioMoby registry. It is often accompanied by an email address.

Returns:
contact or an empty string

setContact

public void setContact(String value)

getDescription

public String getDescription()
Get a human-readable description of this BioMoby registry. It often contain also the registry policy.

Returns:
description or an empty string

setDescription

public void setDescription(String value)

isPublic

public boolean isPublic()
Return true if this BioMoby registry is open without any access restrictions. Otherwise return false.


setPublic

public void setPublic(boolean value)

findResourceURL

public static URL findResourceURL(Registry reg,
                                  String resourceName)
                           throws MobyException
Learn the RDF location for resources of the registry.

Parameters:
resourceName - one of the org.biomoby.shared.Central RESOURCE constants
Returns:
the URL of the resource, or null if the resource does not exist
Throws:
MobyException

Version: 1.1.1

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