|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jage.address.AbstractAddress
public abstract class AbstractAddress
This class provides a standard implementation of basic methods of addresses.
Constructor Summary | |
---|---|
AbstractAddress(INodeAddress nodeAddress,
String userFriendlyName)
Creates a new address. |
Method Summary | |
---|---|
String |
getName()
Provides a user friendly name included in this address. |
INodeAddress |
getNodeAddress()
Returns an address of the node on which this address was created. |
String |
toString()
Provides a standardised string representation of the address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractAddress(INodeAddress nodeAddress, String userFriendlyName)
nodeAddress
- The current node address, cannot be null.userFriendlyName
- A user friendly name to use.Method Detail |
---|
public String toString()
This implementation returns a string of form userFriendlyName@nodeAddress
.
toString
in interface IAddress
toString
in class Object
org.jage.address.IAddress#getUserFriendlyAddress()
public String getName()
IAddress
A "name" is the first part of the address - it does not contain the node address.
This user friendly name does not have to be unique.
getName
in interface IAddress
public INodeAddress getNodeAddress()
IAddress
getNodeAddress
in interface IAddress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |