javax.naming.spi

Class ResolveResult

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.
Field Summary
protected NameremainingName
The remaining, unresolved part of the name.
protected ObjectresolvedObj
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, String remaining)
Create the initialised instance
ResolveResult(Object resolved, Name remaining)
Create the initialised instance
Method Summary
voidappendRemainingComponent(String name)
Append the name to the end of the resolved name.
voidappendRemainingName(Name name)
Append the name to the end of the resolved name.
NamegetRemainingName()
Get the remaining unresolved part of the name
ObjectgetResolvedObj()
Get the object to that the name was partially resolved
voidsetRemainingName(Name name)
Set the remaining unresolved name.
voidsetResolvedObj(Object obj)
Set the object to that the part of the name has been resolved.

Field Detail

remainingName

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

resolvedObj

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

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

appendRemainingComponent

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

Parameters: name the name to append

appendRemainingName

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

Parameters: name the name to append

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.

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.