Version: 1.1.1

org.biomoby.client
Class FilterDataTypes

java.lang.Object
  extended by org.biomoby.client.FilterDataTypes

public abstract class FilterDataTypes
extends Object

Utilities for dealing with a set of MobyDataTypes.

Version:
$Id: FilterDataTypes.java,v 1.1 2005/08/26 06:27:04 senger Exp $
Author:
Martin Senger

Constructor Summary
FilterDataTypes()
           
 
Method Summary
static MobyDataType[] getSubTree(MobyDataType dataType, MobyDataType[] allDataTypes)
          Return a subset of 'allDataTypes' that contains only a path from 'dataType' to the top-level object, including all HAS and HASA members along the way.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterDataTypes

public FilterDataTypes()
Method Detail

getSubTree

public static MobyDataType[] getSubTree(MobyDataType dataType,
                                        MobyDataType[] allDataTypes)
Return a subset of 'allDataTypes' that contains only a path from 'dataType' to the top-level object, including all HAS and HASA members along the way. In other words, it shows a full contents (all members and the whole inheritance) of a data type.

Parameters:
dataType - a dat type whose tree is being created
allDataTypes - a cellection of all data type, usually retrieved from a Biomoby registry
Returns:
a subset defining a tree for 'dataType'. The tree can be shorter if a parent is not found (but it is unlikely).

Version: 1.1.1

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