javax.naming.spi
Class ResolveResult

java.lang.Object
  extended by javax.naming.spi.ResolveResult
All Implemented Interfaces:
Serializable

public class ResolveResult
extends Object
implements Serializable

Stores the partial resolution of the name. This class contains the object to which part of the name has been resolved and the remaining, unresolved part of this name.

See Also:
Serialized Form

Field Summary
protected  Name remainingName
          The remaining, unresolved part of the name.
protected  Object resolvedObj
          The object, to that part of the name has been resolved.
 
Constructor Summary
protected ResolveResult()
          Create the unitialised instance with both parts being null.
  ResolveResult(Object resolved, Name remaining)
          Create the initialised instance
  ResolveResult(Object resolved, String remaining)
          Create the initialised instance
 
Method Summary
 void appendRemainingComponent(String name)
          Append the name to the end of the resolved name.
 void appendRemainingName(Name name)
          Append the name to the end of the resolved name.
 Name getRemainingName()
          Get the remaining unresolved part of the name
 Object getResolvedObj()
          Get the object to that the name was partially resolved
 void setRemainingName(Name name)
          Set the remaining unresolved name.
 void setResolvedObj(Object obj)
          Set the object to that the part of the name has been resolved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolvedObj

protected Object resolvedObj
The object, to that part of the name has been resolved.


remainingName

protected Name remainingName
The remaining, unresolved part of the name.

Constructor Detail

ResolveResult

protected ResolveResult()
Create the unitialised instance with both parts being null.


ResolveResult

public ResolveResult(Object resolved,
                     String remaining)
Create the initialised instance

Parameters:
resolved - the object, to that the name is partially resolved
remaining - the remaining unresolved part of the name.

ResolveResult

public ResolveResult(Object resolved,
                     Name remaining)
Create the initialised instance

Parameters:
resolved - the object, to that the name is partially resolved
remaining - the remaining unresolved part of the name.
Method Detail

getRemainingName

public Name getRemainingName()
Get the remaining unresolved part of the name

Returns:
the remaining unresolved part of the name.

getResolvedObj

public Object getResolvedObj()
Get the object to that the name was partially resolved

Returns:
the object, to that the name is partially resolved

setRemainingName

public void setRemainingName(Name name)
Set the remaining unresolved name.

Parameters:
name - the name being set. The passed parameter is cloned, so the caller can reuse or modify it after the method returns.

appendRemainingName

public void appendRemainingName(Name name)
Append the name to the end of the resolved name.

Parameters:
name - the name to append

appendRemainingComponent

public void appendRemainingComponent(String name)
Append the name to the end of the resolved name.

Parameters:
name - the name to append

setResolvedObj

public void setResolvedObj(Object obj)
Set the object to that the part of the name has been resolved.

Parameters:
obj - the object, to that the name has been partially resolved.