org.semanticweb.owlapi.owllink.builtin.response
Interface Synset<E>

All Superinterfaces:
java.util.Collection<E>, java.lang.Iterable<E>, java.util.Set<E>
All Known Subinterfaces:
SynsetResponse<E>

public interface Synset<E>
extends java.util.Set<E>

Created by IntelliJ IDEA. Author: Olaf Noppens Date: 24.10.2009


Method Summary
 E getSingletonElement()
          Gets the one and only element if this set of synonyms is a singleton set
 boolean isSingleton()
          Determines if this set of synonyms is a singleton set.
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

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

E 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()