project35.soa.ontology.views
Class OntologyService
java.lang.Object
project35.soa.ontology.views.OntologyService
- All Implemented Interfaces:
- java.io.Serializable, DisplayNameProvider
public class OntologyService
- extends java.lang.Object
- implements DisplayNameProvider, java.io.Serializable
a service used to mark-up form fields with ontology terms.
An ontology service comprises at least one of:
-
OntologySource
which provides ontology terms
-
OntologyViewer
which renders ontology terms
if only the source is specified, Project35 associates it with
DefaultOntologyViewer
. if only the view is specified
then Project35 assumes the viewer is responsible for both gathering and
rendering terms for the end-user. if both are specified, then
Project35 uses the source to provide terms to the viewer
An ontology service will also have meta data associated with it that
describes things like the name of the ontology, the version etc.
This information is recorded as part of each ontology term that is
recorded in the *.meta layer of each native Project35 *.pdz file.
Note that this class corresponds to the "ontology_service" record
defined in the XML Schema for the Project35 Configuration Tool.
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OntologyService
public OntologyService(OntologyServiceConfiguration serviceConfiguration)
setName
public void setName(java.lang.String name)
setDescription
public void setDescription(java.lang.String description)
setSource
public void setSource(OntologySource source)
setViewer
public void setViewer(OntologyViewer viewer)
getOntologyServiceMetaData
public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
test
public java.lang.String test()
getName
public java.lang.String getName()
- Specified by:
getName
in interface DisplayNameProvider
getDescription
public java.lang.String getDescription()
getServiceConfiguration
public OntologyServiceConfiguration getServiceConfiguration()
getSource
public OntologySource getSource()
getViewer
public OntologyViewer getViewer()