|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.soa.ontology.sources.AbstractTreeOntologySource
public abstract class AbstractTreeOntologySource
This class is used to manage a tree of terms. Subclasses construct tree elements from sources such as tab indented files and xml files. Also contains routines for searching through the tree.
Field Summary | |
---|---|
protected java.util.ArrayList |
anchorTerms
|
protected java.text.Collator |
collator
|
protected java.io.File |
file
|
protected java.lang.String |
fileName
|
protected boolean |
isSourceWorking
|
protected StringMaskValidator |
maskValidator
|
protected OntologyContext |
ontologyContext
|
protected OntologyServiceMetaData |
ontologyServiceMetaData
|
protected Parameter[] |
parameters
|
protected java.net.URL |
resourceDirectory
|
protected TreeOntologyTerm |
rootTerm
|
protected TreeOntologyTerm |
searchResultTerm
|
protected java.lang.StringBuffer |
status
|
protected java.net.URL |
url
|
Constructor Summary | |
---|---|
AbstractTreeOntologySource()
|
Method Summary | |
---|---|
protected void |
addAnchorTerm(java.lang.String anchorTerm)
|
boolean |
containsTerm(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
determines whether an ontology contains a given term |
Parameter[] |
getInitialisationParameters()
|
OntologyServiceMetaData |
getOntologyServiceMetaData(Project35FormContext project35FormContext)
|
abstract OntologyTermProvenance |
getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
|
OntologyTerm[] |
getRelatedTerms(Project35FormContext project35FormContext,
OntologyRelationshipType relationshipType,
OntologyTerm ontologyTerm)
|
OntologySource |
getSubOntologySource(Project35FormContext project35FormContext,
Parameter[] parameterList)
returns a part of the original ontology |
OntologyRelationshipType[] |
getSupportedOntologyRelationships(Project35FormContext project35FormContext)
|
OntologyTerm[] |
getTerms(Project35FormContext project35FormContext)
returns a collection of terms |
TreeOntologyTerm |
getTreeRoot(Project35FormContext project35FormContext)
|
void |
initialiseService(java.net.URL resourceDirectory,
Parameter[] parameters)
|
boolean |
isWorking()
indicates whether the ontology source is ready for service |
protected void |
reviseTreeWithAnchorTerms()
|
protected TreeOntologyTerm |
search(java.lang.String mask)
|
protected TreeOntologyTerm |
search(java.lang.String mask,
TreeOntologyTerm ontologyTerm)
returns a subtree search result based on a search parameter and a root node |
protected void |
setDescription(java.lang.String fileName)
|
java.lang.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 |
Field Detail |
---|
protected java.util.ArrayList anchorTerms
protected java.text.Collator collator
protected TreeOntologyTerm rootTerm
protected TreeOntologyTerm searchResultTerm
protected StringMaskValidator maskValidator
protected java.io.File file
protected java.lang.StringBuffer status
protected boolean isSourceWorking
protected java.lang.String fileName
protected java.net.URL url
protected Parameter[] parameters
protected OntologyContext ontologyContext
protected java.net.URL resourceDirectory
protected OntologyServiceMetaData ontologyServiceMetaData
Constructor Detail |
---|
public AbstractTreeOntologySource()
Method Detail |
---|
protected TreeOntologyTerm search(java.lang.String mask)
protected TreeOntologyTerm search(java.lang.String mask, TreeOntologyTerm ontologyTerm)
mask
- the search criteriaontologyTerm
- the root term where the search begins
protected void addAnchorTerm(java.lang.String anchorTerm)
protected void reviseTreeWithAnchorTerms()
public boolean isWorking()
OntologySource
isWorking
in interface OntologySource
public Parameter[] getInitialisationParameters()
getInitialisationParameters
in interface ServiceClass
public void initialiseService(java.net.URL resourceDirectory, Parameter[] parameters) throws java.lang.Exception
initialiseService
in interface ServiceClass
java.lang.Exception
protected void setDescription(java.lang.String fileName)
public java.lang.String test()
OntologySource
test
in interface OntologySource
public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
getOntologyServiceMetaData
in interface OntologySource
public abstract OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
getOntologyTermProvenance
in interface OntologySource
public OntologyRelationshipType[] getSupportedOntologyRelationships(Project35FormContext project35FormContext)
getSupportedOntologyRelationships
in interface OntologySource
public OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext, OntologyRelationshipType relationshipType, OntologyTerm ontologyTerm)
getRelatedTerms
in interface OntologySource
public OntologyTerm[] getTerms(Project35FormContext project35FormContext)
OntologySource
getTerms
in interface OntologySource
public boolean containsTerm(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
containsTerm
in interface OntologySource
ontologyTerm
- an ontology term
public TreeOntologyTerm getTreeRoot(Project35FormContext project35FormContext)
getTreeRoot
in interface TreeOntologySource
project35FormContext
- a collection of environment variables that
refer to different parts of the Project35 application
public OntologySource getSubOntologySource(Project35FormContext project35FormContext, Parameter[] parameterList)
getSubOntologySource
in interface OntologySource
parameterList
- an array containing multiple terms enclosed in
double quotation marks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |