Version: 1.1.1

org.biomoby.shared
Class MobyData

java.lang.Object
  extended by org.biomoby.shared.MobyData
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MobyPrimaryData, MobySecondaryData

public abstract class MobyData
extends Object
implements Cloneable

A container keeping input or output data types together with few other attributes. Together they tell what data a service can have. Some of these types are 'primary' - they are used for service discovery - the others are 'secondary' - they are here just for the case that the registry needs to know about all service inputs and outputs.

Version:
$Id: MobyData.java,v 1.7 2010/03/17 20:57:28 gordonp Exp $
Author:
Martin Senger

Constructor Summary
MobyData()
          Default constructor.
MobyData(String name)
          Normal constructor.
 
Method Summary
abstract  MobyData clone()
          Must be overwritten by a subclass.
abstract  String format(int indent)
           
 String getId()
           
 String getName()
           
 Object getUserData()
          Retrieves any application-specific data that may have been stored in association with this Moby object.
abstract  boolean isPrimary()
           
 void setId(String value)
           
 void setName(String value)
           
 void setUserData(Object data)
          Allows developers to track their application-specific information alongside the Moby functionality.
abstract  String toXML()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobyData

public MobyData()
Default constructor.


MobyData

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

Method Detail

getName

public String getName()

setName

public void setName(String value)

getId

public String getId()

setId

public void setId(String value)

getUserData

public Object getUserData()
Retrieves any application-specific data that may have been stored in association with this Moby object. The returned object has nothing to do with the Moby protocol itself. See setUserData() for more details.


setUserData

public void setUserData(Object data)
Allows developers to track their application-specific information alongside the Moby functionality. Provided for application developers' convenience: data stored using this routine is completely ignore by the Moby core libraries. If you want to store Moby data, use the routines defined in various subclasses of this class (e.g. MobyDataObject).


clone

public abstract MobyData clone()
Must be overwritten by a subclass.

Overrides:
clone in class Object

toXML

public abstract String toXML()

isPrimary

public abstract boolean isPrimary()

format

public abstract String format(int indent)

Version: 1.1.1

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