Class BrokenNavigatorConfiguration
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.impl.basic.BrokenNavigatorConfiguration
-
- All Implemented Interfaces:
NavigatorConfigurationIF
public class BrokenNavigatorConfiguration extends Object implements NavigatorConfigurationIF
INTERNAL: Created when there are XML parse errors in the configuration file so that we can report these errors in a proper way.
-
-
Field Summary
-
Fields inherited from interface net.ontopia.topicmaps.nav2.core.NavigatorConfigurationIF
ALLOW_LOAD_ON_REQUEST, ASSOC_CONTEXT_DECIDER, BASENAME_CONTEXT_DECIDER, CHECK_FOR_CHANGED_MODULES, DEF_CHAR_ENCODING, DEF_COMPARATOR, DEF_CONTENT_TYPE, DEF_DECIDER, DEF_FUNC_ONTRUNCATE, DEF_VAL_MAX_LIST_LENGTH, DEF_VAL_USERACTION_LOG_LENGTH, DEFVAL_COMPARATOR, DEFVAL_DECIDER, DEFVAL_OCC_EMPTYLOC, DEFVAL_OCC_EMPTYVALUE, DEFVAL_OCC_NULLLOC, DEFVAL_OCC_NULLVALUE, DEFVAL_OCCTYPE_DEFAULT, DEFVAL_OCCTYPE_DESCRIPTION, DEFVAL_OCCTYPE_METADATA, MAX_LIST_LENGTH, MODULE_READER, NAMESTRING_EMPTYVALUE, NAMESTRING_NONEXISTENT, NAMESTRING_NULLVALUE, OCC_CONTEXT_DECIDER, OCCTYPE_DEFAULT, OCCTYPE_DESCRIPTION, OCCTYPE_METADATA, OCCURRENCE_EMPTYLOCATOR, OCCURRENCE_EMPTYVALUE, OCCURRENCE_NULLLOCATOR, OCCURRENCE_NULLVALUE, PLUGINS_ORDER, USERACTION_LOG_LENGTH, VARIANT_CONTEXT_DECIDER
-
-
Constructor Summary
Constructors Constructor Description BrokenNavigatorConfiguration(String errormsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAutoloadTopicMap(String topicmapId)voidaddClass(String shortcut, String fullClassName)voidaddModel(String name, String title, boolean isDefault)voidaddPlugin(PluginIF aPlugin)Add a plugin to list of known plugins.voidaddProperty(String name, String value)voidaddSkin(String name, String title, boolean isDefault)voidaddView(String name, String title, boolean isDefault)CollectiongetAutoloadTopicMaps()Get Set of Topicmaps which are supposed to be autoloaded by application as aCollectionof TopicMap ID Strings (used by TopicMapRegistry).StringgetClass(String shortcut)Get full-qualified java classname for the specified shortcut name, which can be used by the some tags as attribute value.MapgetClassmap()Get Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.StringgetDefaultModel()Retrieve the name of the application default model.StringgetDefaultSkin()Retrieve the name of the application default skin.StringgetDefaultView()Retrieve the name of the application default view.CollectiongetModels()Get all available models.MVSConfiggetMVSConfig()get storage object for Model/View/Skin settings.CollectiongetOrderedPlugins()Get all plugins independent of their state in alphabetical order.PluginIFgetPlugin(String id)Returns plugin object for specified identifier.ListgetPluginGroups()Return a list of all available plugin groups, that is achieved by looping over all existing plugins and gather all distinct groups..CollectiongetPlugins()Return all plugin objects stored whatever their state (activated, deactivated) is.CollectiongetPlugins(String groupId)Return plugin objects stored whatever their state (activated, deactivated) is that match the specifiedgroupId.MapgetProperties()Get all Configuration Properties as a Map containing key (=property-name) - value pairs.StringgetProperty(String name)Get Property value as String for specified name.intgetProperty(String name, int defaultValue)INTERNAL: Get Property value as int for specified name.StringgetProperty(String name, String defaultValue)Get Property value as String for specified name.CollectiongetSkins()Get all available skins.CollectiongetViews()Get all available views.booleanisAutoloadAllTopicMaps()Returns true if all available topicmaps should be autoloaded at startup time.booleanisAutoloadTopicMap(String topicmapId)Returns true if specified TopicMap ID (used by TopicMapRegistry) should be autoloaded at startup or can be loaded afterwards by request otherwise false.voidsetAutoloads(Collection autoloads)voidsetClassmap(Map classmap)voidsetMVSConfig(MVSConfig mvsConfig)voidsetProperties(Map properties)StringtoString()
-
-
-
Constructor Detail
-
BrokenNavigatorConfiguration
public BrokenNavigatorConfiguration(String errormsg)
-
-
Method Detail
-
getProperty
public String getProperty(String name)
Description copied from interface:NavigatorConfigurationIFGet Property value as String for specified name. If property can not be found an empty String is returned.- Specified by:
getPropertyin interfaceNavigatorConfigurationIF
-
getProperty
public String getProperty(String name, String defaultValue)
Description copied from interface:NavigatorConfigurationIFGet Property value as String for specified name. If property can not be found returndefaultValue.- Specified by:
getPropertyin interfaceNavigatorConfigurationIF
-
getProperty
public int getProperty(String name, int defaultValue)
Description copied from interface:NavigatorConfigurationIFINTERNAL: Get Property value as int for specified name. If property can not be found returndefaultValue.- Specified by:
getPropertyin interfaceNavigatorConfigurationIF
-
getProperties
public Map getProperties()
Description copied from interface:NavigatorConfigurationIFGet all Configuration Properties as a Map containing key (=property-name) - value pairs.- Specified by:
getPropertiesin interfaceNavigatorConfigurationIF
-
setProperties
public void setProperties(Map properties)
-
getClass
public String getClass(String shortcut)
Description copied from interface:NavigatorConfigurationIFGet full-qualified java classname for the specified shortcut name, which can be used by the some tags as attribute value. If shortcut can not be retrieved return empty String.- Specified by:
getClassin interfaceNavigatorConfigurationIF
-
getClassmap
public Map getClassmap()
Description copied from interface:NavigatorConfigurationIFGet Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.- Specified by:
getClassmapin interfaceNavigatorConfigurationIF
-
setClassmap
public void setClassmap(Map classmap)
-
addAutoloadTopicMap
public void addAutoloadTopicMap(String topicmapId)
-
isAutoloadTopicMap
public boolean isAutoloadTopicMap(String topicmapId)
Description copied from interface:NavigatorConfigurationIFReturns true if specified TopicMap ID (used by TopicMapRegistry) should be autoloaded at startup or can be loaded afterwards by request otherwise false.- Specified by:
isAutoloadTopicMapin interfaceNavigatorConfigurationIF- See Also:
TopicMapRepositoryIF
-
isAutoloadAllTopicMaps
public boolean isAutoloadAllTopicMaps()
Description copied from interface:NavigatorConfigurationIFReturns true if all available topicmaps should be autoloaded at startup time.- Specified by:
isAutoloadAllTopicMapsin interfaceNavigatorConfigurationIF
-
getAutoloadTopicMaps
public Collection getAutoloadTopicMaps()
Description copied from interface:NavigatorConfigurationIFGet Set of Topicmaps which are supposed to be autoloaded by application as aCollectionof TopicMap ID Strings (used by TopicMapRegistry).- Specified by:
getAutoloadTopicMapsin interfaceNavigatorConfigurationIF
-
setAutoloads
public void setAutoloads(Collection autoloads)
-
getMVSConfig
public MVSConfig getMVSConfig()
Description copied from interface:NavigatorConfigurationIFget storage object for Model/View/Skin settings.- Specified by:
getMVSConfigin interfaceNavigatorConfigurationIF
-
setMVSConfig
public void setMVSConfig(MVSConfig mvsConfig)
-
getModels
public Collection getModels()
Description copied from interface:NavigatorConfigurationIFGet all available models.- Specified by:
getModelsin interfaceNavigatorConfigurationIF
-
getDefaultModel
public String getDefaultModel()
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default model.- Specified by:
getDefaultModelin interfaceNavigatorConfigurationIF
-
getViews
public Collection getViews()
Description copied from interface:NavigatorConfigurationIFGet all available views.- Specified by:
getViewsin interfaceNavigatorConfigurationIF
-
getDefaultView
public String getDefaultView()
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default view.- Specified by:
getDefaultViewin interfaceNavigatorConfigurationIF
-
getSkins
public Collection getSkins()
Description copied from interface:NavigatorConfigurationIFGet all available skins.- Specified by:
getSkinsin interfaceNavigatorConfigurationIF
-
getDefaultSkin
public String getDefaultSkin()
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default skin.- Specified by:
getDefaultSkinin interfaceNavigatorConfigurationIF
-
addPlugin
public void addPlugin(PluginIF aPlugin)
Description copied from interface:NavigatorConfigurationIFAdd a plugin to list of known plugins.- Specified by:
addPluginin interfaceNavigatorConfigurationIF
-
getPlugin
public PluginIF getPlugin(String id)
Description copied from interface:NavigatorConfigurationIFReturns plugin object for specified identifier.- Specified by:
getPluginin interfaceNavigatorConfigurationIF
-
getPlugins
public Collection getPlugins(String groupId)
Description copied from interface:NavigatorConfigurationIFReturn plugin objects stored whatever their state (activated, deactivated) is that match the specifiedgroupId.- Specified by:
getPluginsin interfaceNavigatorConfigurationIF
-
getPlugins
public Collection getPlugins()
Description copied from interface:NavigatorConfigurationIFReturn all plugin objects stored whatever their state (activated, deactivated) is.- Specified by:
getPluginsin interfaceNavigatorConfigurationIF
-
getOrderedPlugins
public Collection getOrderedPlugins()
Description copied from interface:NavigatorConfigurationIFGet all plugins independent of their state in alphabetical order.- Specified by:
getOrderedPluginsin interfaceNavigatorConfigurationIF
-
getPluginGroups
public List getPluginGroups()
Description copied from interface:NavigatorConfigurationIFReturn a list of all available plugin groups, that is achieved by looping over all existing plugins and gather all distinct groups..- Specified by:
getPluginGroupsin interfaceNavigatorConfigurationIF
-
-