org.sapia.archie.strategy
Class DefaultLookupNodeStrategy

java.lang.Object
  extended by org.sapia.archie.strategy.DefaultLookupNodeStrategy
All Implemented Interfaces:
LookupStrategy
Direct Known Subclasses:
DefaultLookupStrategy

public class DefaultLookupNodeStrategy
extends java.lang.Object
implements LookupStrategy

Looks up a Node corresponding to a given name.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
DefaultLookupNodeStrategy(boolean createNotExistingNodes)
           
 
Method Summary
 java.lang.Object lookup(Name n, Node from)
          Performs the lookup operation from the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLookupNodeStrategy

public DefaultLookupNodeStrategy(boolean createNotExistingNodes)
Parameters:
createNotExistingNodes - if true, parts of looked up names that have no corresponding node will have a node created for them.
Method Detail

lookup

public java.lang.Object lookup(Name n,
                               Node from)
                        throws NotFoundException,
                               ProcessingException
Description copied from interface: LookupStrategy
Performs the lookup operation from the given node.

Specified by:
lookup in interface LookupStrategy
Parameters:
n - the Name of the value to lookup.
from - the Node from which the search starts.
Returns:
the Object that corresponds to the given name.
Throws:
NotFoundException - if no object is found for the given name.
ProcessingException - if a problem occurs while performing the lookup.


Copyright © 2010 Sapia OSS. All Rights Reserved.