net.ontopia.topicmaps.webed.utils
Class ModelLinkGeneratorWithObjID

java.lang.Object
  extended by net.ontopia.topicmaps.webed.utils.ModelLinkGeneratorWithObjID
All Implemented Interfaces:
net.ontopia.topicmaps.nav2.core.LinkGeneratorIF

public class ModelLinkGeneratorWithObjID
extends java.lang.Object
implements net.ontopia.topicmaps.nav2.core.LinkGeneratorIF

INTERNAL: Link generator which generates a URI link to a model page (MVS environment) with topic map and object ID included.

This implementation should be used by a link tag in a customized JSP when working with the MVS approach.

Example usage within the link tag:

template="/models/topic_%model%.jsp?tm=%topicmap%&id=%id%"


Field Summary
static java.lang.String LINK_MODEL_KEY
          Constant String value representing the name of a template variable being replaced with the object id.
 
Fields inherited from interface net.ontopia.topicmaps.nav2.core.LinkGeneratorIF
LINK_ID_KEY, LINK_TOPICMAP_KEY
 
Constructor Summary
ModelLinkGeneratorWithObjID()
           
 
Method Summary
 java.lang.String generate(net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag contextTag, TMObjectIF tmObj, java.lang.String topicmapId, java.lang.String template)
           
 java.lang.String generate(net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag contextTag, TopicMapReferenceIF tmRefObj, java.lang.String template)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINK_MODEL_KEY

public static final java.lang.String LINK_MODEL_KEY
Constant String value representing the name of a template variable being replaced with the object id.

See Also:
Constant Field Values
Constructor Detail

ModelLinkGeneratorWithObjID

public ModelLinkGeneratorWithObjID()
Method Detail

generate

public java.lang.String generate(net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag contextTag,
                                 TMObjectIF tmObj,
                                 java.lang.String topicmapId,
                                 java.lang.String template)
                          throws net.ontopia.topicmaps.nav2.core.NavigatorRuntimeException
Specified by:
generate in interface net.ontopia.topicmaps.nav2.core.LinkGeneratorIF
Throws:
net.ontopia.topicmaps.nav2.core.NavigatorRuntimeException

generate

public java.lang.String generate(net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag contextTag,
                                 TopicMapReferenceIF tmRefObj,
                                 java.lang.String template)
                          throws net.ontopia.topicmaps.nav2.core.NavigatorRuntimeException
Specified by:
generate in interface net.ontopia.topicmaps.nav2.core.LinkGeneratorIF
Throws:
net.ontopia.topicmaps.nav2.core.NavigatorRuntimeException


Copyright © 2000-2010 Ontopia.