Package psidev.psi.mi.jami.bridges.ols
Class LazyOntologyTerm
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCvTerm
-
- psidev.psi.mi.jami.bridges.ols.LazyCvTerm
-
- psidev.psi.mi.jami.bridges.ols.LazyOntologyTerm
-
- All Implemented Interfaces:
CvTerm
,OntologyTerm
public class LazyOntologyTerm extends LazyCvTerm implements OntologyTerm
A lazy ontology term, which only checks for parents of children when required.- Since:
- 21/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LazyOntologyTerm(uk.ac.ebi.pride.utilities.ols.web.service.client.OLSClient olsClient, String fullName, Xref identityRef, String ontologyName)
Constructor for LazyOntologyTerm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<OntologyTerm>
getChildren()
Getter for the fieldchildren
.String
getDefinition()
Getter for the fielddefinition
.Collection<OntologyTerm>
getParents()
Getter for the fieldparents
.protected void
initialiseDefinition(String description)
initialiseDefinition.void
setDefinition(String def)
Set the definitionString
toString()
-
Methods inherited from class psidev.psi.mi.jami.bridges.ols.LazyCvTerm
getAnnotations, getOlsClient, getOntologyName, getOriginalXref, getShortName, getSynonyms, getXrefs, hasLoadedMetadata, hasLoadedXrefs, initialiseMetaData, setShortName
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultCvTerm
clearPropertiesLinkedToIdentifiers, equals, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, hashCode, initialiseAnnotations, initialiseAnnotationsWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseSynonyms, initialiseSynonymsWith, initialiseXrefs, initialiseXrefsWith, processAddedIdentifierEvent, processRemovedIdentifierEvent, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.CvTerm
getAnnotations, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, getShortName, getSynonyms, getXrefs, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier, setShortName
-
-
-
-
Field Detail
-
log
protected final Logger log
-
-
Method Detail
-
getDefinition
public String getDefinition()
Getter for the field
definition
.- Specified by:
getDefinition
in interfaceOntologyTerm
- Returns:
- a
String
object.
-
setDefinition
public void setDefinition(String def)
Set the definition- Specified by:
setDefinition
in interfaceOntologyTerm
- Parameters:
def
- : definition of the term
-
getParents
public Collection<OntologyTerm> getParents()
Getter for the field
parents
.- Specified by:
getParents
in interfaceOntologyTerm
- Returns:
- a
Collection
object.
-
getChildren
public Collection<OntologyTerm> getChildren()
Getter for the field
children
.- Specified by:
getChildren
in interfaceOntologyTerm
- Returns:
- a
Collection
object.
-
toString
public String toString()
- Overrides:
toString
in classLazyCvTerm
-
initialiseDefinition
protected void initialiseDefinition(String description)
initialiseDefinition.
- Overrides:
initialiseDefinition
in classLazyCvTerm
- Parameters:
description
- aString
object.
-
-