javax.naming
public abstract class RefAddr extends Object implements Serializable
Reference
object contains a Vector
of
RefAddr
s 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
.
Since: 1.3
See Also: Reference BinaryRefAddr StringRefAddr
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.
|
Throws: NullPointerException if the supplied String is null.
Returns: true if the given object is an instance of RefAddr, the addrType is the same as this addrType and the content is equals to the content of this object.
getType()
plus the hashCode of the Object returned by
getContent
(when not null).