Package psidev.psi.mi.jami.model.impl
Class DefaultOntologyTerm
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCvTerm
-
- psidev.psi.mi.jami.model.impl.DefaultOntologyTerm
-
- All Implemented Interfaces:
CvTerm
,OntologyTerm
public class DefaultOntologyTerm extends DefaultCvTerm implements OntologyTerm
Default implementation for ontology term Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousCvTermComparator- Since:
15/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultOntologyTerm(String shortName)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, String miIdentifier)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, String fullName, String miIdentifier)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, String fullName, String miIdentifier, String def)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, String fullName, Xref ontologyId)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, String fullName, Xref ontologyId, String def)
Constructor for DefaultOntologyTerm.DefaultOntologyTerm(String shortName, Xref ontologyId)
Constructor for DefaultOntologyTerm.
-
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
initialiseChildren()
initialiseChildrenprotected void
initialiseChildrenWith(Collection<OntologyTerm> children)
initialiseChildrenWithprotected void
initialiseParents()
initialiseParentsprotected void
initialiseParentsWith(Collection<OntologyTerm> parents)
initialiseParentsWithvoid
setDefinition(String def)
Set the definition-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultCvTerm
clearPropertiesLinkedToIdentifiers, equals, getAnnotations, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, getShortName, getSynonyms, getXrefs, hashCode, initialiseAnnotations, initialiseAnnotationsWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseSynonyms, initialiseSynonymsWith, initialiseXrefs, initialiseXrefsWith, processAddedIdentifierEvent, processRemovedIdentifierEvent, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier, setShortName, toString
-
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
-
-
-
-
Constructor Detail
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName)
Constructor for DefaultOntologyTerm.
- Parameters:
shortName
- aString
object.
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName, String miIdentifier)
Constructor for DefaultOntologyTerm.
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName, String fullName, String miIdentifier)
Constructor for DefaultOntologyTerm.
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName, String fullName, String miIdentifier, String def)
Constructor for DefaultOntologyTerm.
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName, Xref ontologyId)
Constructor for DefaultOntologyTerm.
-
DefaultOntologyTerm
public DefaultOntologyTerm(String shortName, String fullName, Xref ontologyId)
Constructor for DefaultOntologyTerm.
-
-
Method Detail
-
initialiseParents
protected void initialiseParents()
initialiseParents
-
initialiseParentsWith
protected void initialiseParentsWith(Collection<OntologyTerm> parents)
initialiseParentsWith
- Parameters:
parents
- aCollection
object.
-
initialiseChildren
protected void initialiseChildren()
initialiseChildren
-
initialiseChildrenWith
protected void initialiseChildrenWith(Collection<OntologyTerm> children)
initialiseChildrenWith
- Parameters:
children
- aCollection
object.
-
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.
-
-