public class SyndContentImpl extends Object implements Serializable, SyndContent
| Constructor and Description |
|---|
SyndContentImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
void |
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.
|
boolean |
equals(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.
|
String |
getMode()
Returns the content mode.
|
String |
getType()
Returns the content type.
|
String |
getValue()
Returns the content value.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setMode(String mode)
Sets the content mode.
|
void |
setType(String type)
Sets the content type.
|
void |
setValue(String value)
Sets the content value.
|
String |
toString()
Returns the String representation for the object.
|
public Object clone() throws CloneNotSupportedException
clone in interface SyndContentclone in class ObjectCloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getType()
When used for the description of an entry, if null 'text/plain' must be assumed.
getType in interface SyndContentpublic void setType(String type)
When used for the description of an entry, if null 'text/plain' must be assumed.
setType in interface SyndContenttype - the content type to set, null if none.public String getMode()
getMode in interface SyndContentpublic void setMode(String mode)
setMode in interface SyndContentmode - the content mode to set, null if none.public String getValue()
getValue in interface SyndContentpublic void setValue(String value)
setValue in interface SyndContentvalue - the content value to set, null if none.public Class<SyndContent> getInterface()
CopyFromThis is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface in interface CopyFrompublic void copyFrom(CopyFrom obj)
CopyFromAny 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.
Copyright © 2023. All rights reserved.