project35.soa.ontology.views
Class StubbedOntologyViewer

java.lang.Object
  extended by project35.soa.StubbedService
      extended by project35.soa.ontology.views.StubbedOntologyViewer
All Implemented Interfaces:
java.io.Serializable, OntologyViewer, ServiceClass

public class StubbedOntologyViewer
extends StubbedService
implements OntologyViewer


Copyright (c) 2008 Kevin Garwood for Project35. This code is licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class project35.soa.StubbedService
collator, project35UIFactory
 
Constructor Summary
StubbedOntologyViewer()
           
 
Method Summary
 boolean canViewSource(Project35FormContext project35FormContext, OntologySource ontologySource)
          determines if this Viewer class is capable of rendering terms supplied by a given ontology source.
 OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
           
 OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
           
 OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext, OntologyRelationshipType relationshipType, OntologyTerm ontologyTerm)
           
 OntologyTerm[] getSelectedOntologyTerms(Project35FormContext project35FormContext)
           
 boolean isWorking()
           
 void setOntologySource(Project35FormContext project35FormContext, OntologySource ontologySource)
          method called by Project35 to help establish the ontology source being rendered by the viewer class.
 void setOntologyTermSelectionListener(OntologyTermSelectionListener ontologyTermSelectionLilstener)
           
 void setVisible(boolean vis)
           
 java.lang.String test()
          this is a diagnostic method to retrieve any errors that may have occurred when the viewer was initially created.
 
Methods inherited from class project35.soa.StubbedService
getInitialisationParameters, getStubbedServiceDescription, getStubbedServiceName, initialiseService, setProject35UIFactory, showStubbedServiceDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface project35.soa.ServiceClass
getInitialisationParameters, initialiseService
 

Constructor Detail

StubbedOntologyViewer

public StubbedOntologyViewer()
Method Detail

getOntologyServiceMetaData

public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
Specified by:
getOntologyServiceMetaData in interface OntologyViewer

isWorking

public boolean isWorking()
Specified by:
isWorking in interface OntologyViewer

setOntologySource

public void setOntologySource(Project35FormContext project35FormContext,
                              OntologySource ontologySource)
                       throws java.lang.Exception
method called by Project35 to help establish the ontology source being rendered by the viewer class. The ontology context helps the viewer ask questions about what else might be on the form. This information could be used to limit what relevant terms are displayed to end users.

Specified by:
setOntologySource in interface OntologyViewer
Throws:
java.lang.Exception

canViewSource

public boolean canViewSource(Project35FormContext project35FormContext,
                             OntologySource ontologySource)
determines if this Viewer class is capable of rendering terms supplied by a given ontology source.

Specified by:
canViewSource in interface OntologyViewer

test

public java.lang.String test()
this is a diagnostic method to retrieve any errors that may have occurred when the viewer was initially created.

Specified by:
test in interface OntologyViewer

setVisible

public void setVisible(boolean vis)
Specified by:
setVisible in interface OntologyViewer

getRelatedTerms

public OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext,
                                      OntologyRelationshipType relationshipType,
                                      OntologyTerm ontologyTerm)
Specified by:
getRelatedTerms in interface OntologyViewer

getOntologyTermProvenance

public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext,
                                                        OntologyTerm ontologyTerm)
Specified by:
getOntologyTermProvenance in interface OntologyViewer

getSelectedOntologyTerms

public OntologyTerm[] getSelectedOntologyTerms(Project35FormContext project35FormContext)
Specified by:
getSelectedOntologyTerms in interface OntologyViewer

setOntologyTermSelectionListener

public void setOntologyTermSelectionListener(OntologyTermSelectionListener ontologyTermSelectionLilstener)
Specified by:
setOntologyTermSelectionListener in interface OntologyViewer