Version: 1.1.1

org.biomoby.shared
Interface MobyObjectDecomposition

All Known Implementing Classes:
MobyObjectDecompositionImpl

public interface MobyObjectDecomposition

Author:
Eddie Kawas

Created for

This class was created to ...

For questions, comments, or bugs

email me at edward.kawas@gmail.com


Method Summary
 MobyDataObject[] getFlattenedPrims(String object)
          PRE:None.
 Map getObjectComposition(String object, String mobyEndpoint)
          PRE:None.
 boolean isPrimitive(String object)
          PRE:None.
 

Method Detail

getFlattenedPrims

MobyDataObject[] getFlattenedPrims(String object)
PRE:None.

POST:If object is a valid MOBY object, then all of the primitives in the objects HAS and HASA containers are returned as an array of strings.

Parameters:
object - - the object to flatten into its primitives.
Returns:
- the full decomposition of an object into its primitives.

getObjectComposition

Map getObjectComposition(String object,
                         String mobyEndpoint)
                         throws MobyException
PRE:None.

POST:A Map of relationships with the keys being "isa", "has", and "hasa". The values are string arrays or null if no relationship exists.

Parameters:
object - - the object to decompose into its HAS & HASA container objects.
Returns:
- A Map of relationships with the keys being "isa", "has", and "hasa". The values are string arrays consisting of [object,articleName], for has and hasa relationships, or null if no relationship exists.
Throws:
MobyException - - if no such object exists in the MOBY ontology.

isPrimitive

boolean isPrimitive(String object)
PRE:None.

POST:if object is a primitive, boolean true is returned, otherwise false is returned.

Parameters:
object - - the MOBY object to check.
Returns:
true if object is a primitive, false otherwise.

Version: 1.1.1

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