|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.nav2.utils.ContextUtils
public final class ContextUtils
PUBLIC: Utility methods for working with the variable bindings in the Navigator context.
Method Summary | |
---|---|
static TopicMapRepositoryIF |
getRepository(javax.servlet.ServletContext servletContext)
EXPERIMENTAL: Gets the topic map repository used by the navigator framework. |
static java.lang.Object |
getSingleValue(java.lang.String name,
javax.servlet.jsp.PageContext pageContext)
PUBLIC: Returns the first value in the collection bound to a specific variable in the current scope. |
static java.lang.Object |
getSingleValue(java.lang.String name,
javax.servlet.ServletRequest request)
PUBLIC: Returns the first value in the collection bound to a specific variable in the current scope. |
static TopicMapIF |
getTopicMap(javax.servlet.jsp.PageContext pageContext)
EXPERIMENTAL: Get the topic map object the context tag is working with. |
static TopicMapIF |
getTopicMap(javax.servlet.ServletRequest request)
EXPERIMENTAL: Get the topic map object the context tag is working with. |
static java.util.Collection |
getValue(java.lang.String name,
javax.servlet.jsp.PageContext pageContext)
PUBLIC: Returns the value bound to a specific variable in the current scope. |
static java.util.Collection |
getValue(java.lang.String name,
javax.servlet.jsp.PageContext pageContext,
java.util.Collection defaultValue)
PUBLIC: Returns the value bound to a specific variable in the current scope. |
static void |
setSingleValue(java.lang.String name,
javax.servlet.jsp.PageContext pageContext,
java.lang.Object value)
PUBLIC: Sets the value of the named variable to a collection consisting only of the single value given. |
static void |
setValue(java.lang.String name,
javax.servlet.jsp.PageContext pageContext,
java.util.Collection value)
PUBLIC: Sets the value of the named variable to the collection given. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final TopicMapRepositoryIF getRepository(javax.servlet.ServletContext servletContext)
public static TopicMapIF getTopicMap(javax.servlet.ServletRequest request)
public static TopicMapIF getTopicMap(javax.servlet.jsp.PageContext pageContext)
public static java.util.Collection getValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext)
public static java.util.Collection getValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext, java.util.Collection defaultValue)
public static java.lang.Object getSingleValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext)
public static java.lang.Object getSingleValue(java.lang.String name, javax.servlet.ServletRequest request)
public static void setValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext, java.util.Collection value)
public static void setSingleValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext, java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |