|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.configurationTool.Project35ConfigurationOntologySource
public class Project35ConfigurationOntologySource
used in the Project35 configuration tool to supply names of records and fields. Note that this is not meant for general use and fulfills a specific project35 configuration purpose
This source expects the calling field to be called "name", but it looks at the name of the calling record to figure out whether "name" should be supplied with the list of record types or record fields in the schema. by default, if the record type of the calling record is "record" it returns the names of all record types. if the record type is "record_field", it looks in the "record" parent of the "record_field" and finds out the record type. It uses this to return a collection of fields for that record type.
Developers can configure the ontology source to associate other names with these actions. in Project36, if the "name" field is in the context of a "query" or "query_result" record type, then it expects the names of all record types in the schema. "query_field" and "query_result_field" would warrant returning the field names for the appropriate record type. return_record_names - registers the parameter value as the name of a record type in that eg: "query", "query_result" return_all_field_names return_edit_field_names return_editable_field_names return_list_field_names
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.
| Constructor Summary | |
|---|---|
Project35ConfigurationOntologySource()
|
|
| Method Summary | |
|---|---|
boolean |
containsTerm(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
determine whether the source contains a particular ontology term |
static OntologyTerm[] |
gatherRecordClassNames(RecordModelFactory recordModelFactory)
|
Parameter[] |
getInitialisationParameters()
|
OntologyServiceMetaData |
getOntologyServiceMetaData(Project35FormContext project35FormContext)
|
OntologyTermProvenance |
getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
|
OntologyTerm[] |
getRelatedTerms(Project35FormContext project35FormContext,
OntologyRelationshipType relationshipType,
OntologyTerm ontologyTerm)
|
OntologySource |
getSubOntologySource(Project35FormContext project35FormContext,
Parameter[] parameterList)
returns another ontology source is basically this one but pared down by the parameters |
OntologyRelationshipType[] |
getSupportedOntologyRelationships(Project35FormContext project35FormContext)
|
OntologyTerm[] |
getTerms(Project35FormContext project35FormContext)
returns a collection of terms |
void |
initialiseService(URL resourceDirectory,
Parameter[] initialisationParameters)
|
boolean |
isWorking()
indicates whether the ontology source is ready for service |
void |
setOntologyContext(OntologyContext ontologyContext)
|
void |
setTargetSchemaRecordModelFactory(RecordModelFactory targetSchemaRecordModelFactory)
|
String |
test()
diagnostic method that indicates whether the ontology source is working. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Project35ConfigurationOntologySource()
| Method Detail |
|---|
public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
getOntologyServiceMetaData in interface OntologySourcepublic void setTargetSchemaRecordModelFactory(RecordModelFactory targetSchemaRecordModelFactory)
public void setOntologyContext(OntologyContext ontologyContext)
public Parameter[] getInitialisationParameters()
getInitialisationParameters in interface ServiceClass
public void initialiseService(URL resourceDirectory,
Parameter[] initialisationParameters)
initialiseService in interface ServiceClass
public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
getOntologyTermProvenance in interface OntologySourcepublic boolean isWorking()
OntologySource
isWorking in interface OntologySourcepublic String test()
OntologySource
test in interface OntologySourcepublic OntologyTerm[] getTerms(Project35FormContext project35FormContext)
OntologySource
getTerms in interface OntologySourcepublic OntologyRelationshipType[] getSupportedOntologyRelationships(Project35FormContext project35FormContext)
getSupportedOntologyRelationships in interface OntologySource
public OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext,
OntologyRelationshipType relationshipType,
OntologyTerm ontologyTerm)
getRelatedTerms in interface OntologySourcepublic static OntologyTerm[] gatherRecordClassNames(RecordModelFactory recordModelFactory)
public boolean containsTerm(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
OntologySource
containsTerm in interface OntologySource
public OntologySource getSubOntologySource(Project35FormContext project35FormContext,
Parameter[] parameterList)
OntologySource
getSubOntologySource in interface OntologySource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||