Package org.opencms.newsletter
Class CmsNewsletterContent
- java.lang.Object
-
- org.opencms.newsletter.CmsNewsletterContent
-
- All Implemented Interfaces:
java.lang.Comparable<I_CmsNewsletterContent>
,I_CmsNewsletterContent
public class CmsNewsletterContent extends java.lang.Object implements I_CmsNewsletterContent
Content for newsletters.
-
-
Constructor Summary
Constructors Constructor Description CmsNewsletterContent(int order, java.lang.String content, CmsNewsletterContentType type)
Creates a new CmsNewsletterContent instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(I_CmsNewsletterContent 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()
-
-
-
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 contentcontent
- the contenttype
- the newsletter contents' type
-
-
Method Detail
-
compareTo
public int compareTo(I_CmsNewsletterContent o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<I_CmsNewsletterContent>
- See Also:
Comparable.compareTo(java.lang.Object)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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 interfaceI_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 interfaceI_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 interfaceI_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 interfaceI_CmsNewsletterContent
- Returns:
- the type
- See Also:
I_CmsNewsletterContent.getType()
-
-