From: Xuan B. <med...@us...> - 2008-01-22 21:22:23
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1 In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24483/src/org/tm4j/topicmap/tmdm/tm4j1 Modified Files: TopicMapImpl.java Log Message: Implement TopicMapImpl.createAssociation(String id) legacy method. Index: TopicMapImpl.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1/TopicMapImpl.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TopicMapImpl.java 22 Jan 2008 21:15:12 -0000 1.9 --- TopicMapImpl.java 22 Jan 2008 21:22:25 -0000 1.10 *************** *** 352,359 **** * is already assigned to some other object in this TopicMap. * @throws PropertyVetoException if some listener to the TopicMap vetoes the creation of this object. */ ! public Association createAssociation(String id) ! throws DuplicateObjectIDException, PropertyVetoException { ! throw new UnsupportedOperationException(); } --- 352,364 ---- * is already assigned to some other object in this TopicMap. * @throws PropertyVetoException if some listener to the TopicMap vetoes the creation of this object. + * @deprecated As of TMDM, it is not allowed to have untyped associations. */ ! @Deprecated ! public Association createAssociation(String id) throws DuplicateObjectIDException, PropertyVetoException { ! try { ! return createAssociation(id,null,null,null); ! } catch (DuplicateResourceLocatorException e) { ! throw new RuntimeException("This may never happen.",e); ! } } |