com.ibm.portal.resolver.friendly.helper
Class DefaultSelectionResult

java.lang.Object
  extended by com.ibm.portal.resolver.friendly.helper.DefaultSelectionResult
All Implemented Interfaces:
SelectionResult, java.io.Serializable

public class DefaultSelectionResult
extends java.lang.Object
implements SelectionResult, java.io.Serializable

Convenience implementation of SelectionResult

Since:
6.1.0
See Also:
Serialized Form

Constructor Summary
DefaultSelectionResult()
           
 
Method Summary
 java.lang.String getFriendlyPath()
          The friendly path or null
 java.util.List<ObjectID> getNodes()
          The the current node result list
 java.lang.String getPathInfo()
          The path info or null
 void setFriendlyPath(java.lang.String str)
          Assigns the friendly path.
 void setNodes(java.util.List<ObjectID> res)
          assign the result list
 void setPathInfo(java.lang.String str)
          Assigns the portion of the path, that could not be matched against a friendly URL, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSelectionResult

public DefaultSelectionResult()
Method Detail

getFriendlyPath

public java.lang.String getFriendlyPath()
Description copied from interface: SelectionResult
The friendly path or null

Specified by:
getFriendlyPath in interface SelectionResult
Returns:
the friendly path or null

getNodes

public java.util.List<ObjectID> getNodes()
Description copied from interface: SelectionResult
The the current node result list

Specified by:
getNodes in interface SelectionResult
Returns:
list of selection results containing ObjectID elements

getPathInfo

public java.lang.String getPathInfo()
Description copied from interface: SelectionResult
The path info or null

Specified by:
getPathInfo in interface SelectionResult
Returns:
the path info or null.

setFriendlyPath

public void setFriendlyPath(java.lang.String str)
Description copied from interface: SelectionResult
Assigns the friendly path. This is the substring of the path used for parsing that represents the friendly URL match. If no friendly URL could be matched this will be null.

Specified by:
setFriendlyPath in interface SelectionResult
Parameters:
str - the friendly path or null

setNodes

public void setNodes(java.util.List<ObjectID> res)
Description copied from interface: SelectionResult
assign the result list

Specified by:
setNodes in interface SelectionResult
Parameters:
res - current result containing ObjectID elements

setPathInfo

public void setPathInfo(java.lang.String str)
Description copied from interface: SelectionResult
Assigns the portion of the path, that could not be matched against a friendly URL, i.e. the remaining path portion. If the friendly URL represents the complete path this will be null

Specified by:
setPathInfo in interface SelectionResult
Parameters:
str - the path info or null