project35.metaData
Class PostAnnotationPlugin

java.lang.Object
  extended by project35.soa.plugins.AbstractProject35Plugin
      extended by project35.metaData.PostAnnotationPlugin
All Implemented Interfaces:
java.io.Serializable, OntologyTermSelectionListener, Project35Plugin, ServiceClass

public class PostAnnotationPlugin
extends AbstractProject35Plugin
implements Project35Plugin, OntologyTermSelectionListener

plugin that is activated when user wants to add new ontology terms for the field meta data record


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. 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.plugins.AbstractProject35Plugin
initialisationParameters, resourceDirectory
 
Constructor Summary
PostAnnotationPlugin()
           
 
Method Summary
 void execute(Project35FormContext metaDataFormContext)
          execute the plugin
 boolean isSuitableForRecordModel(java.lang.String modelStamp, java.lang.String recordClassName)
           
 java.lang.String isWorking()
          Interface: Project35Plugin
 void termSelected(OntologyTerm ontologyTerm, OntologySource ontologySource)
          indicates user has finished selecting an ontology term.
 void termSelected(OntologyTermProvenance ontologyTermProvenance)
          indicates that an existing ontology term has been selected
 void termsSelected(OntologyViewer ontologyViewer)
          Interface: Ontology Term Selection Listener
 
Methods inherited from class project35.soa.plugins.AbstractProject35Plugin
getDescription, getDisplayName, getHelpLink, getInitialisationParameters, initialiseService, setDescription, setDisplayName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface project35.soa.plugins.Project35Plugin
getHelpLink
 
Methods inherited from interface project35.soa.ServiceClass
getInitialisationParameters, initialiseService
 

Constructor Detail

PostAnnotationPlugin

public PostAnnotationPlugin()
Method Detail

termsSelected

public void termsSelected(OntologyViewer ontologyViewer)
Interface: Ontology Term Selection Listener

Specified by:
termsSelected in interface OntologyTermSelectionListener
Parameters:
ontologyViewer - a Java class that implements OntologyViewer interface; the class that renders ontology terms for the end-user

termSelected

public void termSelected(OntologyTerm ontologyTerm,
                         OntologySource ontologySource)
Description copied from interface: OntologyTermSelectionListener
indicates user has finished selecting an ontology term.

Specified by:
termSelected in interface OntologyTermSelectionListener
Parameters:
ontologyTerm - the ontology term that has been selected
ontologySource - a Java class that implements OntologySource

termSelected

public void termSelected(OntologyTermProvenance ontologyTermProvenance)
Description copied from interface: OntologyTermSelectionListener
indicates that an existing ontology term has been selected

Specified by:
termSelected in interface OntologyTermSelectionListener
Parameters:
ontologyTermProvenance - holds all the data about an ontology term used for markup

isWorking

public java.lang.String isWorking()
Interface: Project35Plugin


isSuitableForRecordModel

public boolean isSuitableForRecordModel(java.lang.String modelStamp,
                                        java.lang.String recordClassName)
Specified by:
isSuitableForRecordModel in interface Project35Plugin
Parameters:
modelStamp - - is the model stamp currently being used by the application.
recordClassName - - the record class of a target record model, usually the currently displayed one.

execute

public void execute(Project35FormContext metaDataFormContext)
Description copied from interface: Project35Plugin
execute the plugin

Specified by:
execute in interface Project35Plugin