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.StringgetDefinition()Getter for the fielddefinition.Collection<OntologyTerm>getParents()Getter for the fieldparents.protected voidinitialiseDefinition(String description)initialiseDefinition.voidsetDefinition(String def)Set the definitionStringtoString()-
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:
getDefinitionin interfaceOntologyTerm- Returns:
- a
Stringobject.
-
setDefinition
public void setDefinition(String def)
Set the definition- Specified by:
setDefinitionin interfaceOntologyTerm- Parameters:
def- : definition of the term
-
getParents
public Collection<OntologyTerm> getParents()
Getter for the field
parents.- Specified by:
getParentsin interfaceOntologyTerm- Returns:
- a
Collectionobject.
-
getChildren
public Collection<OntologyTerm> getChildren()
Getter for the field
children.- Specified by:
getChildrenin interfaceOntologyTerm- Returns:
- a
Collectionobject.
-
toString
public String toString()
- Overrides:
toStringin classLazyCvTerm
-
initialiseDefinition
protected void initialiseDefinition(String description)
initialiseDefinition.
- Overrides:
initialiseDefinitionin classLazyCvTerm- Parameters:
description- aStringobject.
-
-