net.ontopia.topicmaps.nav2.impl.basic
Class BrokenNavigatorConfiguration

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.impl.basic.BrokenNavigatorConfiguration
All Implemented Interfaces:
NavigatorConfigurationIF

public class BrokenNavigatorConfiguration
extends java.lang.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
BrokenNavigatorConfiguration(java.lang.String errormsg)
           
 
Method Summary
 void addAutoloadTopicMap(java.lang.String topicmapId)
           
 void addClass(java.lang.String shortcut, java.lang.String fullClassName)
           
 void addModel(java.lang.String name, java.lang.String title, boolean isDefault)
           
 void addPlugin(PluginIF aPlugin)
          Add a plugin to list of known plugins.
 void addProperty(java.lang.String name, java.lang.String value)
           
 void addSkin(java.lang.String name, java.lang.String title, boolean isDefault)
           
 void addView(java.lang.String name, java.lang.String title, boolean isDefault)
           
 java.util.Collection getAutoloadTopicMaps()
          Get Set of Topicmaps which are supposed to be autoloaded by application as a Collection of TopicMap ID Strings (used by TopicMapRegistry).
 java.lang.String getClass(java.lang.String shortcut)
          Get full-qualified java classname for the specified shortcut name, which can be used by the some tags as attribute value.
 java.util.Map getClassmap()
          Get Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.
 java.lang.String getDefaultModel()
          Retrieve the name of the application default model.
 java.lang.String getDefaultSkin()
          Retrieve the name of the application default skin.
 java.lang.String getDefaultView()
          Retrieve the name of the application default view.
 java.util.Collection getModels()
          Get all available models.
 MVSConfig getMVSConfig()
          get storage object for Model/View/Skin settings.
 java.util.Collection getOrderedPlugins()
          Get all plugins independent of their state in alphabetical order.
 PluginIF getPlugin(java.lang.String id)
          Returns plugin object for specified identifier.
 java.util.List getPluginGroups()
          Return a list of all available plugin groups, that is achieved by looping over all existing plugins and gather all distinct groups..
 java.util.Collection getPlugins()
          Return all plugin objects stored whatever their state (activated, deactivated) is.
 java.util.Collection getPlugins(java.lang.String groupId)
          Return plugin objects stored whatever their state (activated, deactivated) is that match the specified groupId.
 java.util.Map getProperties()
          Get all Configuration Properties as a Map containing key (=property-name) - value pairs.
 java.lang.String getProperty(java.lang.String name)
          Get Property value as String for specified name.
 int getProperty(java.lang.String name, int defaultValue)
          INTERNAL: Get Property value as int for specified name.
 java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
          Get Property value as String for specified name.
 java.util.Collection getSkins()
          Get all available skins.
 java.util.Collection getViews()
          Get all available views.
 boolean isAutoloadAllTopicMaps()
          Returns true if all available topicmaps should be autoloaded at startup time.
 boolean isAutoloadTopicMap(java.lang.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.
 void setAutoloads(java.util.Collection autoloads)
           
 void setClassmap(java.util.Map classmap)
           
 void setMVSConfig(MVSConfig mvsConfig)
           
 void setProperties(java.util.Map properties)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokenNavigatorConfiguration

public BrokenNavigatorConfiguration(java.lang.String errormsg)
Method Detail

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String name)
Description copied from interface: NavigatorConfigurationIF
Get Property value as String for specified name. If property can not be found an empty String is returned.

Specified by:
getProperty in interface NavigatorConfigurationIF

getProperty

public java.lang.String getProperty(java.lang.String name,
                                    java.lang.String defaultValue)
Description copied from interface: NavigatorConfigurationIF
Get Property value as String for specified name. If property can not be found return defaultValue.

Specified by:
getProperty in interface NavigatorConfigurationIF

getProperty

public int getProperty(java.lang.String name,
                       int defaultValue)
Description copied from interface: NavigatorConfigurationIF
INTERNAL: Get Property value as int for specified name. If property can not be found return defaultValue.

Specified by:
getProperty in interface NavigatorConfigurationIF

getProperties

public java.util.Map getProperties()
Description copied from interface: NavigatorConfigurationIF
Get all Configuration Properties as a Map containing key (=property-name) - value pairs.

Specified by:
getProperties in interface NavigatorConfigurationIF

setProperties

public void setProperties(java.util.Map properties)

addClass

public void addClass(java.lang.String shortcut,
                     java.lang.String fullClassName)

getClass

public java.lang.String getClass(java.lang.String shortcut)
Description copied from interface: NavigatorConfigurationIF
Get 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:
getClass in interface NavigatorConfigurationIF

getClassmap

public java.util.Map getClassmap()
Description copied from interface: NavigatorConfigurationIF
Get Java-Classname Mapping as a Map containing key (=shortcut) - value (=full class name) pairs.

Specified by:
getClassmap in interface NavigatorConfigurationIF

setClassmap

public void setClassmap(java.util.Map classmap)

addAutoloadTopicMap

public void addAutoloadTopicMap(java.lang.String topicmapId)

isAutoloadTopicMap

public boolean isAutoloadTopicMap(java.lang.String topicmapId)
Description copied from interface: NavigatorConfigurationIF
Returns true if specified TopicMap ID (used by TopicMapRegistry) should be autoloaded at startup or can be loaded afterwards by request otherwise false.

Specified by:
isAutoloadTopicMap in interface NavigatorConfigurationIF
See Also:
TopicMapRepositoryIF

isAutoloadAllTopicMaps

public boolean isAutoloadAllTopicMaps()
Description copied from interface: NavigatorConfigurationIF
Returns true if all available topicmaps should be autoloaded at startup time.

Specified by:
isAutoloadAllTopicMaps in interface NavigatorConfigurationIF

getAutoloadTopicMaps

public java.util.Collection getAutoloadTopicMaps()
Description copied from interface: NavigatorConfigurationIF
Get Set of Topicmaps which are supposed to be autoloaded by application as a Collection of TopicMap ID Strings (used by TopicMapRegistry).

Specified by:
getAutoloadTopicMaps in interface NavigatorConfigurationIF

setAutoloads

public void setAutoloads(java.util.Collection autoloads)

getMVSConfig

public MVSConfig getMVSConfig()
Description copied from interface: NavigatorConfigurationIF
get storage object for Model/View/Skin settings.

Specified by:
getMVSConfig in interface NavigatorConfigurationIF

setMVSConfig

public void setMVSConfig(MVSConfig mvsConfig)

addModel

public void addModel(java.lang.String name,
                     java.lang.String title,
                     boolean isDefault)

getModels

public java.util.Collection getModels()
Description copied from interface: NavigatorConfigurationIF
Get all available models.

Specified by:
getModels in interface NavigatorConfigurationIF

getDefaultModel

public java.lang.String getDefaultModel()
Description copied from interface: NavigatorConfigurationIF
Retrieve the name of the application default model.

Specified by:
getDefaultModel in interface NavigatorConfigurationIF

addView

public void addView(java.lang.String name,
                    java.lang.String title,
                    boolean isDefault)

getViews

public java.util.Collection getViews()
Description copied from interface: NavigatorConfigurationIF
Get all available views.

Specified by:
getViews in interface NavigatorConfigurationIF

getDefaultView

public java.lang.String getDefaultView()
Description copied from interface: NavigatorConfigurationIF
Retrieve the name of the application default view.

Specified by:
getDefaultView in interface NavigatorConfigurationIF

addSkin

public void addSkin(java.lang.String name,
                    java.lang.String title,
                    boolean isDefault)

getSkins

public java.util.Collection getSkins()
Description copied from interface: NavigatorConfigurationIF
Get all available skins.

Specified by:
getSkins in interface NavigatorConfigurationIF

getDefaultSkin

public java.lang.String getDefaultSkin()
Description copied from interface: NavigatorConfigurationIF
Retrieve the name of the application default skin.

Specified by:
getDefaultSkin in interface NavigatorConfigurationIF

addPlugin

public void addPlugin(PluginIF aPlugin)
Description copied from interface: NavigatorConfigurationIF
Add a plugin to list of known plugins.

Specified by:
addPlugin in interface NavigatorConfigurationIF

getPlugin

public PluginIF getPlugin(java.lang.String id)
Description copied from interface: NavigatorConfigurationIF
Returns plugin object for specified identifier.

Specified by:
getPlugin in interface NavigatorConfigurationIF

getPlugins

public java.util.Collection getPlugins(java.lang.String groupId)
Description copied from interface: NavigatorConfigurationIF
Return plugin objects stored whatever their state (activated, deactivated) is that match the specified groupId.

Specified by:
getPlugins in interface NavigatorConfigurationIF

getPlugins

public java.util.Collection getPlugins()
Description copied from interface: NavigatorConfigurationIF
Return all plugin objects stored whatever their state (activated, deactivated) is.

Specified by:
getPlugins in interface NavigatorConfigurationIF

getOrderedPlugins

public java.util.Collection getOrderedPlugins()
Description copied from interface: NavigatorConfigurationIF
Get all plugins independent of their state in alphabetical order.

Specified by:
getOrderedPlugins in interface NavigatorConfigurationIF

getPluginGroups

public java.util.List getPluginGroups()
Description copied from interface: NavigatorConfigurationIF
Return a list of all available plugin groups, that is achieved by looping over all existing plugins and gather all distinct groups..

Specified by:
getPluginGroups in interface NavigatorConfigurationIF

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.