org.tm4j.topicmap.utils.extractors
Class TypeExtractor

java.lang.Object
  extended byorg.tm4j.topicmap.utils.extractors.ExtractorBase
      extended byorg.tm4j.topicmap.utils.extractors.TypeExtractor
All Implemented Interfaces:
uk.co.jezuk.mango.UnaryFunction

public class TypeExtractor
extends ExtractorBase

An extractor which returns the topic(s) which type the object specified on the input. If the input object is a Topic, then the output value will be an unmodifiable collection of Topics. If the input object is an Association, or Occurrence, the output value will be the Topic which is the value of the type property. If the input object is a Member instance then the output value will be the Topic which is the value of the roleSpec property. For all other input objects, the return value will be null.


Constructor Summary
TypeExtractor()
           
 
Method Summary
 java.lang.Object _extract(java.lang.Object in)
           
 
Methods inherited from class org.tm4j.topicmap.utils.extractors.ExtractorBase
fn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeExtractor

public TypeExtractor()
Method Detail

_extract

public java.lang.Object _extract(java.lang.Object in)
Specified by:
_extract in class ExtractorBase