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.
| Modifier and Type | Field and 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. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | ResolveResult()
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null. |
| public | ResolveResult(Object
The non-null object resolved to. robj, String The single remaining name component that has yet to be
resolved. Cannot be null (but can be empty). rcomp)Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component. |
| public | ResolveResult(Object
The non-null Object resolved to. robj, Name The non-null remaining name that has yet to be resolved. rname)Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name. |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendRemainingComponent(String
The component to add. Can be null. name)Adds a single component to the end of remaining name. |
| public void | appendRemainingName(Name
The components to add. Can be null. name)Adds components to the end of remaining name. |
| public Name | Returns: The remaining unresolved portion of the name. Cannot be null but empty OK.Retrieves the remaining unresolved portion of the name. |
| public Object | Returns: The Object to which resolution was successful. Cannot be null.Retrieves the Object to which resolution was successful. |
| public void | setRemainingName(Name
The name to set remaining name to. Cannot be null. name)Sets the remaining name field of this result to name. |
| public void | setResolvedObj(Object
The object to use for setting the resolved obj field.
Cannot be null. obj)Sets the resolved Object field of this result to obj. |
| remainingName | back to summary |
|---|---|
| protected Name remainingName Field containing the remaining name yet to be resolved. It can be null only when constructed using a subclass. Constructors should always initialize this. | |
| resolvedObj | back to summary |
|---|---|
| protected Object resolvedObj Field containing the Object that was resolved to successfully. It can be null only when constructed using a subclass. Constructors should always initialize this.
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ResolveResult | back to summary |
|---|---|
| protected ResolveResult() Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null. | |
| ResolveResult | back to summary |
|---|---|
| public ResolveResult(Object robj, String rcomp) Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component. | |
| ResolveResult | back to summary |
|---|---|
| public ResolveResult(Object robj, Name rname) Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name. | |
| appendRemainingComponent | back to summary |
|---|---|
| public void appendRemainingComponent(String name) Adds a single component to the end of remaining name.
| |
| appendRemainingName | back to summary |
|---|---|
| public void appendRemainingName(Name name) Adds components to the end of remaining name.
| |
| getRemainingName | back to summary |
|---|---|
| public Name getRemainingName() Retrieves the remaining unresolved portion of the name.
| |
| getResolvedObj | back to summary |
|---|---|
| public Object getResolvedObj() Retrieves the Object to which resolution was successful.
| |
| setRemainingName | back to summary |
|---|---|
| public void setRemainingName(Name name) Sets the remaining name field of this result to name.
A copy of name is made so that modifying the copy within
this ResolveResult does not affect
| |
| setResolvedObj | back to summary |
|---|---|
| public void setResolvedObj(Object obj) Sets the resolved Object field of this result to obj.
| |