net.sf.xbus.base.xbussystem
Interface AdditionalAddress

All Known Implementing Classes:
Dealer

public interface AdditionalAddress

TODO Kommentierung


Method Summary
 java.util.List getAddresses()
          Returns a list of all configured addresses.
 java.lang.String getValue(java.lang.String inValue, java.lang.String outValue, java.lang.String key)
           
 boolean hasMarker(java.lang.String text)
          Returns if the given text contains placeholders for informations on the address.
 java.lang.String replaceMarker(java.lang.String text, java.lang.String address)
          The given text may contain placeholders for informations on the address.
 

Method Detail

getAddresses

java.util.List getAddresses()
                            throws XException
Returns a list of all configured addresses.

Returns:
list of addresses
Throws:
XException - if any error occurs

hasMarker

boolean hasMarker(java.lang.String text)
                  throws XException
Returns if the given text contains placeholders for informations on the address.

Parameters:
text - text eventually containing markers
Returns:
true if text contains markers
Throws:
XException - if any error occurs

replaceMarker

java.lang.String replaceMarker(java.lang.String text,
                               java.lang.String address)
                               throws XException
The given text may contain placeholders for informations on the address. These placeholders will be replaced with their actual values for the address of the neighbor system.

If the address has not been set, the text will be returned without modifications.

Parameters:
text - text containing markers
address - adress to search for the values
Returns:
text with replacements for markers
Throws:
XException - if the entry is not found or any error occurs

getValue

java.lang.String getValue(java.lang.String inValue,
                          java.lang.String outValue,
                          java.lang.String key)
                          throws XException
Throws:
XException