org.semanticweb.owlapi.owllink.builtin.response
Interface IndividualSynset

All Superinterfaces:
java.lang.Iterable<OWLIndividual>

public interface IndividualSynset
extends java.lang.Iterable<OWLIndividual>

Author: Olaf Noppens Date: 17.02.2010


Method Summary
  asNode()
          Converts this object to a Node< OWLNamedIndividual > .
 boolean contains(OWLIndividual individual)
           
 java.util.Set<OWLIndividual> getIndividuals()
           
 OWLIndividual getSingletonElement()
          Gets the one and only element if this set of synonyms is a singleton set
 boolean isNode()
          Determines true if this IndividualSynonyms object can be converted to a Node< OWLNamedIndividual > without any loss, i.e., iff the IndividualSynonyms object only contains OWLNamedIndividuals.
 boolean isSingleton()
          Determines if this set of synonyms is a singleton set.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

isNode

boolean isNode()
Determines true if this IndividualSynonyms object can be converted to a Node< OWLNamedIndividual > without any loss, i.e., iff the IndividualSynonyms object only contains OWLNamedIndividuals.

Returns:
true if this object can be converted to a Node, otherwise false

asNode

 asNode()
Converts this object to a Node< OWLNamedIndividual > . This is only possible if isNode() returns true.

Returns:
Node<OWLNamedIndividual>
Throws:
org.semanticweb.owlapi.model.OWLRuntimeException - if isNode() returns false

isSingleton

boolean isSingleton()
Determines if this set of synonyms is a singleton set.

Returns:
true if this synonym set is a singleton set, otherwise false

getSingletonElement

OWLIndividual getSingletonElement()
Gets the one and only element if this set of synonyms is a singleton set

Returns:
the one and only element if this set is a singleton set. If this set is not a singleton set then a runtime exception will be thrown
See Also:
isSingleton()

getIndividuals

java.util.Set<OWLIndividual> getIndividuals()

contains

boolean contains(OWLIndividual individual)