|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.naming.RefAddr
public abstract class RefAddr
Abstract superclass of addresses used in References.
A Reference object contains a Vector of
RefAddrs which are used to reference/address the object.
This abstract superclass keeps track of the type of address, which will be
returned by getType(). And defines a abstract method
getContent() which must be implemented in concrete subclasses
such as BinaryRefAddr and StringRefAddr.
Reference,
BinaryRefAddr,
StringRefAddr,
Serialized Form| Field Summary | |
|---|---|
protected String |
addrType
The string resprenstation of the type of address. |
| Constructor Summary | |
|---|---|
protected |
RefAddr(String addrType)
Protected constructor for use by subclasses. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Checks if the object is a RefAddr with the same type and content. |
abstract Object |
getContent()
Returns the possibly null content of this RefAddr. |
String |
getType()
Returns the non-null address type given to the constructor. |
int |
hashCode()
Returns the hashCode which is the hasCode of the String returned by getType() plus the hashCode of the Object returned by
getContent (when not null). |
String |
toString()
Returns a String representation of the RefAddr. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String addrType
| Constructor Detail |
|---|
protected RefAddr(String addrType)
NullPointerException - if the supplied String is null.| Method Detail |
|---|
public String getType()
public abstract Object getContent()
public boolean equals(Object o)
equals in class Objecto - the Object to compare to
Object.hashCode()public int hashCode()
getType() plus the hashCode of the Object returned by
getContent (when not null).
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||