On this page
Class ResolveResult
- All Implemented Interfaces:
-
Serializable
public class ResolveResult extends Object implements Serializable
A ResolveResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ResolveResult instance should lock the object.
- Since:
- 1.3
- See Also:
Field Summary
Modifier and Type | Field | Description |
---|---|---|
protected Name |
remainingName |
Field containing the remaining name yet to be resolved.
|
protected Object |
resolvedObj |
Field containing the Object that was resolved to successfully.
|
Constructor Summary
ResolveResult(Object robj, String rcomp)
ResolveResult(Object robj, Name rname)
Modifier | Constructor | Description |
---|---|---|
protected |
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.
|
|
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.
|
||
Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.
|
Method Summary
Modifier and Type | Method | Description |
---|---|---|
void |
appendRemainingComponent |
Adds a single component to the end of remaining name.
|
void |
appendRemainingName |
Adds components to the end of remaining name.
|
Name |
getRemainingName() |
Retrieves the remaining unresolved portion of the name.
|
Object |
getResolvedObj() |
Retrieves the Object to which resolution was successful.
|
void |
setRemainingName |
Sets the remaining name field of this result to name.
|
void |
setResolvedObj |
Sets the resolved Object field of this result to obj.
|
Field Details
resolvedObj
protected Object resolvedObj
remainingName
protected Name remainingName
Constructor Details
ResolveResult
protected ResolveResult()
ResolveResult
public ResolveResult(Object robj, String rcomp)
- Parameters:
robj
- The non-null object resolved to.rcomp
- The single remaining name component that has yet to be resolved. Cannot be null (but can be empty).
ResolveResult
public ResolveResult(Object robj, Name rname)
- Parameters:
robj
- The non-null Object resolved to.rname
- The non-null remaining name that has yet to be resolved.
Method Details
getRemainingName
public Name getRemainingName()
- Returns:
- The remaining unresolved portion of the name. Cannot be null but empty OK.
- See Also:
getResolvedObj
public Object getResolvedObj()
- Returns:
- The Object to which resolution was successful. Cannot be null.
- See Also:
setRemainingName
public void setRemainingName(Name name)
name
and vice versa.
- Parameters:
name
- The name to set remaining name to. Cannot be null.- See Also:
appendRemainingName
public void appendRemainingName(Name name)
- Parameters:
name
- The components to add. Can be null.- See Also:
appendRemainingComponent
public void appendRemainingComponent(String name)
- Parameters:
name
- The component to add. Can be null.- See Also:
setResolvedObj
public void setResolvedObj(Object obj)
- Parameters:
obj
- The object to use for setting the resolved obj field. Cannot be null.- See Also:
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.naming/javax/naming/spi/ResolveResult.html