org.jboss.messaging.core.postoffice.impl
Class AddressImpl

java.lang.Object
  extended by org.jboss.messaging.core.postoffice.impl.AddressImpl
All Implemented Interfaces:
Address

public class AddressImpl
extends java.lang.Object
implements Address

splits an address string into its hierarchical parts split by '.'

Author:
Andy Taylor

Constructor Summary
AddressImpl(SimpleString address)
           
 
Method Summary
 void addLinkedAddress(Address address)
           
 boolean containsWildCard()
           
 boolean equals(java.lang.Object o)
           
 SimpleString getAddress()
           
 SimpleString[] getAddressParts()
           
 java.util.List<Address> getLinkedAddresses()
           
 int hashCode()
           
 boolean matches(Address add)
           
 void removeAddressPart(int pos)
           
 void removeLinkedAddress(Address actualAddress)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressImpl

public AddressImpl(SimpleString address)
Method Detail

getAddress

public SimpleString getAddress()
Specified by:
getAddress in interface Address

getAddressParts

public SimpleString[] getAddressParts()
Specified by:
getAddressParts in interface Address

containsWildCard

public boolean containsWildCard()
Specified by:
containsWildCard in interface Address

getLinkedAddresses

public java.util.List<Address> getLinkedAddresses()
Specified by:
getLinkedAddresses in interface Address

addLinkedAddress

public void addLinkedAddress(Address address)
Specified by:
addLinkedAddress in interface Address

removeLinkedAddress

public void removeLinkedAddress(Address actualAddress)
Specified by:
removeLinkedAddress in interface Address

removeAddressPart

public void removeAddressPart(int pos)
Specified by:
removeAddressPart in interface Address

matches

public boolean matches(Address add)
Specified by:
matches in interface Address

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.