com.sun.syndication.feed.synd

Class SyndContentImpl

public class SyndContentImpl extends Object implements Serializable, SyndContent

Bean for content of SyndFeedImpl entries.

Author: Alejandro Abdelnur

Field Summary
static CopyFromHelperCOPY_FROM_HELPER
String_mode
ObjectBean_objBean
String_type
String_value
Constructor Summary
SyndContentImpl()
Default constructor.
Method Summary
Objectclone()
Creates a deep 'bean' clone of the object.
voidcopyFrom(Object obj)
booleanequals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
ClassgetInterface()
StringgetMode()
Returns the content mode.
StringgetType()
Returns the content type.
StringgetValue()
Returns the content value.
inthashCode()
Returns a hashcode value for the object.
voidsetMode(String mode)
Sets the content mode.
voidsetType(String type)
Sets the content type.
voidsetValue(String value)
Sets the content value.
StringtoString()
Returns the String representation for the object.

Field Detail

COPY_FROM_HELPER

private static final CopyFromHelper COPY_FROM_HELPER

_mode

private String _mode

_objBean

private ObjectBean _objBean

_type

private String _type

_value

private String _value

Constructor Detail

SyndContentImpl

public SyndContentImpl()
Default constructor. All properties are set to null.

Method Detail

clone

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

Returns: a clone of the object.

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

copyFrom

public void copyFrom(Object obj)

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters: other he reference object with which to compare.

Returns: true if 'this' object is equal to the 'other' object.

getInterface

public Class getInterface()

getMode

public String getMode()
Returns the content mode.

Returns: the content mode, 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.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns: the hashcode of the bean object.

setMode

public void setMode(String mode)
Sets the content mode.

Parameters: type the content mode 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.

toString

public String toString()
Returns the String representation for the object.

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.