Class NavigatorConfiguration
java.lang.Object
net.ontopia.topicmaps.nav2.impl.basic.NavigatorConfiguration
- All Implemented Interfaces:
NavigatorConfigurationIF
INTERNAL: A configuration holder class for storing
and providing information about the application
configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Setprotected Mapprotected booleanprotected MVSConfigprotected Mapprotected MapFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoloadTopicMap(String topicmapId) voidvoidvoidAdd a plugin to list of known plugins.voidaddProperty(String name, String value) voidvoidGet Set of Topicmaps which are supposed to be autoloaded by application as aCollectionof TopicMap ID Strings (used by TopicMapRegistry).Get full-qualified java classname for the specified shortcut name, which can be used by the some tags as attribute value.Get Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.Retrieve the name of the application default model.Retrieve the name of the application default skin.Retrieve the name of the application default view.Get all available models.get storage object for Model/View/Skin settings.Get all plugins independent of their state in alphabetical order.Returns plugin object for specified identifier.Return a list of all available plugin groups, that is achieved by looping over all existing plugins and gather all distinct groups..Return all plugin objects stored whatever their state (activated, deactivated) is.getPlugins(String groupId) Return plugin objects stored whatever their state (activated, deactivated) is that match the specifiedgroupId.Get all Configuration Properties as a Map containing key (=property-name) - value pairs.getProperty(String name) Get Property value as String for specified name.intgetProperty(String name, int defaultValue) INTERNAL: Get Property value as int for specified name.getProperty(String name, String defaultValue) Get Property value as String for specified name.getSkins()Get all available skins.getViews()Get all available views.booleanReturns 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) toString()
-
Field Details
-
AUTOLOAD_ALL_KEY
- See Also:
-
properties
-
classmap
-
plugins
-
mvsConfig
-
autoloads
-
isAutoloadAll
protected boolean isAutoloadAll
-
-
Constructor Details
-
NavigatorConfiguration
public NavigatorConfiguration()INTERNAL: default constructor.
-
-
Method Details
-
addProperty
-
getProperty
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
Description copied from interface:NavigatorConfigurationIFGet Property value as String for specified name. If property can not be found returndefaultValue.- Specified by:
getPropertyin interfaceNavigatorConfigurationIF
-
getProperty
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
Description copied from interface:NavigatorConfigurationIFGet all Configuration Properties as a Map containing key (=property-name) - value pairs.- Specified by:
getPropertiesin interfaceNavigatorConfigurationIF
-
setProperties
-
addClass
-
getClass
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
Description copied from interface:NavigatorConfigurationIFGet Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.- Specified by:
getClassmapin interfaceNavigatorConfigurationIF
-
setClassmap
-
addAutoloadTopicMap
-
isAutoloadTopicMap
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:
-
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
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
-
getMVSConfig
Description copied from interface:NavigatorConfigurationIFget storage object for Model/View/Skin settings.- Specified by:
getMVSConfigin interfaceNavigatorConfigurationIF
-
addModel
-
getModels
Description copied from interface:NavigatorConfigurationIFGet all available models.- Specified by:
getModelsin interfaceNavigatorConfigurationIF
-
getDefaultModel
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default model.- Specified by:
getDefaultModelin interfaceNavigatorConfigurationIF
-
addView
-
getViews
Description copied from interface:NavigatorConfigurationIFGet all available views.- Specified by:
getViewsin interfaceNavigatorConfigurationIF
-
getDefaultView
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default view.- Specified by:
getDefaultViewin interfaceNavigatorConfigurationIF
-
addSkin
-
getSkins
Description copied from interface:NavigatorConfigurationIFGet all available skins.- Specified by:
getSkinsin interfaceNavigatorConfigurationIF
-
getDefaultSkin
Description copied from interface:NavigatorConfigurationIFRetrieve the name of the application default skin.- Specified by:
getDefaultSkinin interfaceNavigatorConfigurationIF
-
getPlugin
Description copied from interface:NavigatorConfigurationIFReturns plugin object for specified identifier.- Specified by:
getPluginin interfaceNavigatorConfigurationIF
-
getPlugins
Description copied from interface:NavigatorConfigurationIFReturn plugin objects stored whatever their state (activated, deactivated) is that match the specifiedgroupId.- Specified by:
getPluginsin interfaceNavigatorConfigurationIF
-
getPlugins
Description copied from interface:NavigatorConfigurationIFReturn all plugin objects stored whatever their state (activated, deactivated) is.- Specified by:
getPluginsin interfaceNavigatorConfigurationIF
-
getOrderedPlugins
Description copied from interface:NavigatorConfigurationIFGet all plugins independent of their state in alphabetical order.- Specified by:
getOrderedPluginsin interfaceNavigatorConfigurationIF
-
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
-
toString
-