org.otfeed.event
Class OTExchange

java.lang.Object
  extended by org.otfeed.event.OTExchange
All Implemented Interfaces:
java.lang.Comparable<OTExchange>

public final class OTExchange
extends java.lang.Object
implements java.lang.Comparable<OTExchange>

Provides exchange information.


Constructor Summary
OTExchange()
          Default constructor.
OTExchange(java.lang.String code, java.lang.String title, java.lang.String description, boolean available, java.lang.String subscriptionURL)
          Constructor.
 
Method Summary
 int compareTo(OTExchange other)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 java.lang.String getSubscriptionURL()
           
 java.lang.String getTitle()
           
 int hashCode()
           
 boolean isAvailable()
           
 void setAvailable(boolean available)
          Sets available field.
 void setCode(java.lang.String code)
          Sets exchange code.
 void setDescription(java.lang.String description)
          Sets description of the exchange.
 void setSubscriptionURL(java.lang.String url)
          Sets SubscriptionURL field.
 void setTitle(java.lang.String title)
          Sets exchange title.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OTExchange

public OTExchange()
Default constructor.


OTExchange

public OTExchange(java.lang.String code,
                  java.lang.String title,
                  java.lang.String description,
                  boolean available,
                  java.lang.String subscriptionURL)
Constructor.

Parameters:
code - Exchange code.
title - Exchange title.
description - Description of the exchange.
available - Available field.
subscriptionURL - URL.
Method Detail

getCode

public java.lang.String getCode()
Returns:
Exchange code.

setCode

public void setCode(java.lang.String code)
Sets exchange code.

Parameters:
code - Exchange code.

getTitle

public java.lang.String getTitle()
Returns:
The exchange title.

setTitle

public void setTitle(java.lang.String title)
Sets exchange title.

Parameters:
title - Exchange title.

getDescription

public java.lang.String getDescription()
Returns:
A description of the exchange.

setDescription

public void setDescription(java.lang.String description)
Sets description of the exchange.

Parameters:
description - Description of the exchange.

isAvailable

public boolean isAvailable()
Returns:
Is available.

setAvailable

public void setAvailable(boolean available)
Sets available field.

Parameters:
available - Available field.

getSubscriptionURL

public java.lang.String getSubscriptionURL()
Returns:
If the user is not subscribed to this exchange, he can go to this URL to do so.

setSubscriptionURL

public void setSubscriptionURL(java.lang.String url)
Sets SubscriptionURL field.

Parameters:
url - URL.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

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

equals

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

compareTo

public int compareTo(OTExchange other)
Specified by:
compareTo in interface java.lang.Comparable<OTExchange>


Copyright © 2007 Mike Kroutikov. All Rights Reserved.