org.opencms.newsletter
Class CmsNewsletterContent

java.lang.Object
  extended by org.opencms.newsletter.CmsNewsletterContent
All Implemented Interfaces:
java.lang.Comparable, I_CmsNewsletterContent

public class CmsNewsletterContent
extends java.lang.Object
implements I_CmsNewsletterContent

Content for newsletters.

Author:
Alexander Kandzior, Jan Baudisch

Constructor Summary
CmsNewsletterContent(int order, java.lang.String content, CmsNewsletterContentType type)
          Creates a new CmsNewsletterContent instance.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getChannel()
          Returns the channel.
 java.lang.String getContent()
          Returns the content.
 int getOrder()
          Returns the order of this content in it's channel.
 CmsNewsletterContentType getType()
          Returns the type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsNewsletterContent

public CmsNewsletterContent(int order,
                            java.lang.String content,
                            CmsNewsletterContentType type)
Creates a new CmsNewsletterContent instance.

Parameters:
order - the order of the newsletter content
content - the content
type - the newsletter contents' type
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

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

getChannel

public java.lang.String getChannel()
Description copied from interface: I_CmsNewsletterContent
Returns the channel.

Specified by:
getChannel in interface I_CmsNewsletterContent
Returns:
the channel
See Also:
I_CmsNewsletterContent.getChannel()

getContent

public java.lang.String getContent()
Description copied from interface: I_CmsNewsletterContent
Returns the content.

Specified by:
getContent in interface I_CmsNewsletterContent
Returns:
the content
See Also:
I_CmsNewsletterContent.getContent()

getOrder

public int getOrder()
Description copied from interface: I_CmsNewsletterContent
Returns the order of this content in it's channel.

Specified by:
getOrder in interface I_CmsNewsletterContent
Returns:
the order of this content in it's channel
See Also:
I_CmsNewsletterContent.getOrder()

getType

public CmsNewsletterContentType getType()
Description copied from interface: I_CmsNewsletterContent
Returns the type.

Specified by:
getType in interface I_CmsNewsletterContent
Returns:
the type
See Also:
I_CmsNewsletterContent.getType()