fulmine
Class Addressable

java.lang.Object
  extended by fulmine.Addressable
All Implemented Interfaces:
IAddressable
Direct Known Subclasses:
SubscriptionParameters

public class Addressable
extends Object
implements IAddressable

Basic implementation of an IAddressable object

Author:
Ramon Servadei

Constructor Summary
Addressable(IAddressable id)
          Standard clone constructor
Addressable(String identity, IType type, IDomain domain)
          Standard constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getAddress()
          Get the unique address for this.
 IDomain getDomain()
          Get the domain attribute of this object.
 String getIdentity()
          Get the identification string for this entity.
 IType getType()
          Get the type attribute of this object.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Addressable

public Addressable(IAddressable id)
Standard clone constructor

Parameters:
id - the addressable instance to clone from

Addressable

public Addressable(String identity,
                   IType type,
                   IDomain domain)
Standard constructor

Parameters:
identity - the identity
type - the type
domain - the domain
Method Detail

getType

public final IType getType()
Description copied from interface: IAddressable
Get the type attribute of this object. The type is orthogonal to the domain.

Specified by:
getType in interface IAddressable
Returns:
the type of this object
See Also:
IAddressable.getDomain()

getDomain

public final IDomain getDomain()
Description copied from interface: IAddressable
Get the domain attribute of this object. The domain is orthogonal to the type.

Specified by:
getDomain in interface IAddressable
Returns:
the domain of this object
See Also:
IAddressable.getType()

getIdentity

public final String getIdentity()
Description copied from interface: IAddressable
Get the identification string for this entity. This is unique within the type and domain.

Specified by:
getIdentity in interface IAddressable
Returns:
a String identity providing an identification for this entity within its type and domain.
See Also:
IAddressable.getType(), IAddressable.getDomain()

toString

public final String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getAddress

public String getAddress()
Description copied from interface: IAddressable
Get the unique address for this. The address is composed of the identity, domain and type.

Specified by:
getAddress in interface IAddressable
Returns:
the unique address for this


Copyright © 2007-2009. All Rights Reserved.