Package com.rometools.rome.feed.synd
Class SyndContentImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndContentImpl
-
- All Implemented Interfaces:
CopyFrom,SyndContent,Serializable,Cloneable
public class SyndContentImpl extends Object implements Serializable, SyndContent
Bean for content of SyndFeedImpl entries.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndContentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.voidcopyFrom(CopyFrom obj)Copies all the properties of the given bean into this one.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.Class<SyndContent>getInterface()Returns the interface the copyFrom works on.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.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceSyndContent- Overrides:
clonein classObject- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
-
hashCode
public int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
-
toString
public String toString()
Returns the String representation for the object.
-
getType
public String getType()
Returns the content type.When used for the description of an entry, if null 'text/plain' must be assumed.
- Specified by:
getTypein interfaceSyndContent- Returns:
- the content type, 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.
- Specified by:
setTypein interfaceSyndContent- Parameters:
type- the content type to set, null if none.
-
getMode
public String getMode()
Returns the content mode.- Specified by:
getModein interfaceSyndContent- Returns:
- the content mode, null if none.
-
setMode
public void setMode(String mode)
Sets the content mode.- Specified by:
setModein interfaceSyndContent- Parameters:
mode- the content mode to set, null if none.
-
getValue
public String getValue()
Returns the content value.- Specified by:
getValuein interfaceSyndContent- Returns:
- the content value, null if none.
-
setValue
public void setValue(String value)
Sets the content value.- Specified by:
setValuein interfaceSyndContent- Parameters:
value- the content value to set, null if none.
-
getInterface
public Class<SyndContent> getInterface()
Description copied from interface:CopyFromReturns the interface the copyFrom works on.This is useful when dealing with properties that may have multiple implementations. For example, Module.
- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
copyFrom
public void copyFrom(CopyFrom obj)
Description copied from interface:CopyFromCopies all the properties of the given bean into this one.Any existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
-
-