/** * INTERNAL: Constructor which tries to retrieve the PSI for the * related topic types from the navigator configuration */ public TypeDecider(NavigatorPageIF contextTag, String type) throws MalformedURLException { if (hierUtils == null) hierUtils = new TypeHierarchyUtils(); // get URIs of reference types NavigatorConfigurationIF navConf = contextTag.getNavigatorConfiguration(); // typingTopic String refTypingTopicURL = null; if (type.equals(OCC_METADATA)) refTypingTopicURL = navConf .getProperty(NavigatorConfigurationIF.OCCTYPE_METADATA, NavigatorConfigurationIF.DEFVAL_OCCTYPE_METADATA); if (type.equals(OCC_DESCRIPTION)) refTypingTopicURL = navConf .getProperty(NavigatorConfigurationIF.OCCTYPE_DESCRIPTION, NavigatorConfigurationIF.DEFVAL_OCCTYPE_DESCRIPTION); refTypingTopicLocator = new URILocator(refTypingTopicURL); }