org.moremotion.adom
Class ADOMUtils
java.lang.Object
org.moremotion.adom.ADOMUtils
public final class ADOMUtils
- extends java.lang.Object
- Version:
- $Id: ADOMUtils.java 51 2008-03-10 11:46:54Z erkan $
Method Summary |
static ADOM |
findADOM(MoreMotionRequest request,
java.lang.String nodePath)
Extracts the ADOM Name from the given nodePath definition and checkes if an ADOM is associated
with it. |
static char |
getADOMScope(java.lang.String nodePath)
Extracts the scope identifier from the given node path definition and returns it. |
static java.lang.String |
getNodePath(java.lang.String str)
|
static java.lang.String |
getPureADOMName(java.lang.String nodePath)
Extracts the name of the ADOM from the given node path definition and returns it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADOMUtils
public ADOMUtils()
getNodePath
public static java.lang.String getNodePath(java.lang.String str)
findADOM
public static ADOM findADOM(MoreMotionRequest request,
java.lang.String nodePath)
- Extracts the ADOM Name from the given nodePath definition and checkes if an ADOM is associated
with it. The search is done in request, session, application order.
Examples:
s:/cart
: The scope is given as "s" so ADOM cart will be searched in session scope.
/myds/item
: The scope is not given so ADOM myds will be searched in all scopes.
- Parameters:
request
- MoreMotionRequest objectnodePath
- The node path definition that contains the ADOM name.
- Returns:
- The ADOM found. If No ADOM is found
null
is returned.
getPureADOMName
public static java.lang.String getPureADOMName(java.lang.String nodePath)
- Extracts the name of the ADOM from the given node path definition and returns it.
getADOMScope
public static char getADOMScope(java.lang.String nodePath)
- Extracts the scope identifier from the given node path definition and returns it.
Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.