|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.webed.impl.utils.ModelLinkGeneratorWithObjID
public class ModelLinkGeneratorWithObjID
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%"
LinkTag
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(ContextTag contextTag,
TMObjectIF tmObj,
java.lang.String topicmapId,
java.lang.String template)
INTERNAL: create a String which contains link information for a Topic Map Object. |
java.lang.String |
generate(ContextTag contextTag,
TopicMapReferenceIF tmRefObj,
java.lang.String template)
INTERNAL: create a String which contains link information to a Topicmap retrieved with the help of an TopicMapReferenceIF object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINK_MODEL_KEY
Constructor Detail |
---|
public ModelLinkGeneratorWithObjID()
Method Detail |
---|
public java.lang.String generate(ContextTag contextTag, TMObjectIF tmObj, java.lang.String topicmapId, java.lang.String template) throws NavigatorRuntimeException
LinkGeneratorIF
Note: This String gets converted
to an URL encoded format by the link
tag automatically afterwards.
generate
in interface LinkGeneratorIF
contextTag
- A ContextTag object providing access to
all important information to the application.tmObj
- An Object implementing TMObjectIF to which the link
should direct.topicmapId
- The id that the topic map has in the registry.template
- A template string which may contain
template variable(s) which are replaced.
NavigatorRuntimeException
public java.lang.String generate(ContextTag contextTag, TopicMapReferenceIF tmRefObj, java.lang.String template) throws NavigatorRuntimeException
LinkGeneratorIF
Note: This String gets converted
to an URL encoded format by the link
tag automatically afterwards.
generate
in interface LinkGeneratorIF
contextTag
- A ContextTag object providing access to
all important information to the application.tmRefObj
- An Object implementing TopicMapReferenceIF
to which beloning Topic Map the link should direct.template
- A template string which may contain
template variable(s) which are replaced.
NavigatorRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |