org.tm4j.panckoucke.abstraction.Abstractor .supportsAbstraction(org.tm4j.topicmap.TopicMapObject tmo,org.tm4j.panckoucke.abstraction.AbstractionContext ac)

Description

Checks, if a concrete demand for an abstraction model can be handled by the implementation. There can be several reasons, why an implementaion may return false. For example an unsupported subclass of TopicMapObject is passed to the implementation. Or an unknown level-description is passed via the AbstractionContext. If called with the parameters tmo and ac, and the call returns false, an subsequent call to #generateModel(TopicMapObject, AbstractionContext) should throw an UnsupportedOperationException.

Parameters
org.tm4j.panckoucke.abstraction.AbstractionContext ac the AbstractionContext which specifys additional input to the Abstractor.
org.tm4j.topicmap.TopicMapObject tmo the TopicMapObject which will be in the center of the abstraction model

Returns

true if the concrete subclass of TopicMapObject, of which tmo is an instance, is supported by this Abstractor implementation, along with the given AbstractorContext ac. If this method returns false, a call to getModel with the same set of params should throw an UnsupportedOperationException.

Other Resources