java.lang.Object
org.tm4j.topicmap.utils.WalkerFilterAdapter
org.tm4j.topicmap.utils.TypeInstanceAssociationFilter
- All Implemented Interfaces:
- WalkerFilter, WalkerHandler
- public class TypeInstanceAssociationFilter
- extends WalkerFilterAdapter
This filter will skip all associations which are an XTM TYPE-INSTANCE
association and will skip the topics which are used to define that association
type and the roles of that association type.
Note This filter does not check for the uses of the topics before
removing them. Therefore, if this filter is used with a topic map which makes
use of the XTM defined subjects for purposes other than duplicating the topic
<instanceOf> construct, then the filtered topic map may be left
internally inconsistent.
| Methods inherited from class org.tm4j.topicmap.utils.WalkerFilterAdapter |
endAssociation, endBaseName, endMember, endOccurrence, endScope, endTopic, endTopicMap, endVariant, getHandler, onParameter, onPlayer, onRoleSpec, onSubject, onSubjectIndicator, onTheme, onType, onVariantName, setHandler, startBaseName, startMember, startOccurrence, startScope, startTopicMap, startVariant |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeInstanceAssociationFilter
public TypeInstanceAssociationFilter()
startTopic
public boolean startTopic(org.tm4j.topicmap.Topic t)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startTopic in interface WalkerHandler- Overrides:
startTopic in class WalkerFilterAdapter
startAssociation
public boolean startAssociation(org.tm4j.topicmap.Association a)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startAssociation in interface WalkerHandler- Overrides:
startAssociation in class WalkerFilterAdapter
isTypeInstanceTopic
protected boolean isTypeInstanceTopic(org.tm4j.topicmap.Topic t)