From: SourceForge.net <no...@so...> - 2003-12-10 14:18:14
|
Feature Requests item #781928, was opened at 2003-08-02 12:27 Message generated for change (Comment added) made by kal_ahmed You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391882&aid=781928&group_id=27895 Category: Interface Improvements (example) Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: instanceOf with subjectIndicator Initial Comment: While the XTM standards says that instanceOf could contain a reference to a topic OR to an subject indicated by a subjectIndicator, tm4j does only allow for topic references. In org.tm4j.topic.Topic I propose a new method: public void addType(Locator subject) throws PropertyVetoException; Problem is that the setTypes() and getTypes() methods have to be changed as well. ---------------------------------------------------------------------- >Comment By: Kal Ahmed (kal_ahmed) Date: 2003-12-10 14:18 Message: Logged In: YES user_id=176992 Although the XTM *syntax* allows you to refer to the class using a subjectIndicatorRef in the instanceOf element, in the data model, the reference is always to a Topic. When importing XTM, TM4J will look for a topic with the subject indicator specified in the subjectInidicatorRef element and if it does not exist, it will create a new topic which has that subject indicator set. addType(Locator) *could* be treated as a convenience method that does the look-up by subject indicator and creates a new topic if one does not already exist, but I think I would prefer to leave the core APIs as compact as possible at the moment. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391882&aid=781928&group_id=27895 |