org.sapia.archie.strategy
Class DefaultLookupStrategy

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

public class DefaultLookupStrategy
extends DefaultLookupNodeStrategy

Looks up a value, given a name. Searches from a given node, following the path evaluated from that node.

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
DefaultLookupStrategy()
           
 
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

DefaultLookupStrategy

public DefaultLookupStrategy()
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
Overrides:
lookup in class DefaultLookupNodeStrategy
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.
See Also:
LookupStrategy.lookup(Name, Node)


Copyright © 2010 Sapia OSS. All Rights Reserved.