com.sun.syndication.feed.synd

Interface SyndContent

public interface SyndContent extends Cloneable, CopyFrom

Bean interface for content of SyndFeedImpl entries.

Author: Alejandro Abdelnur

Method Summary
Objectclone()
Creates a deep clone of the object.
StringgetMode()
Sets the content mode (needed for Atom 0.3 support).
StringgetType()
Returns the content type.
StringgetValue()
Returns the content value.
voidsetMode(String mode)
Sets the content mode (needed for Atom 0.3 support).
voidsetType(String type)
Sets the content type.
voidsetValue(String value)
Sets the content value.

Method Detail

clone

public Object clone()
Creates a deep clone of the object.

Returns: a clone of the object.

Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.

getMode

public String getMode()
Sets the content mode (needed for Atom 0.3 support).

Parameters: type the content type to set, null if none.

getType

public String getType()
Returns the content type.

When used for the description of an entry, if null 'text/plain' must be assumed.

Returns: the content type, null if none.

getValue

public String getValue()
Returns the content value.

Returns: the content value, null if none.

setMode

public void setMode(String mode)
Sets the content mode (needed for Atom 0.3 support).

Parameters: type the content type to set, null if none.

setType

public void setType(String type)
Sets the content type.

When used for the description of an entry, if null 'text/plain' must be assumed.

Parameters: type the content type to set, null if none.

setValue

public void setValue(String value)
Sets the content value.

Parameters: value the content value to set, null if none.

Copyright © Sun Microsystems. All Rights Reserved.