public class SyndContentImpl extends java.lang.Object implements java.io.Serializable, SyndContent
Modifier and Type | Field and Description |
---|---|
private static CopyFromHelper |
COPY_FROM_HELPER |
private java.lang.String |
mode |
private ObjectBean |
objBean |
private static long |
serialVersionUID |
private java.lang.String |
type |
private java.lang.String |
value |
Constructor and Description |
---|
SyndContentImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
java.lang.Class<SyndContent> |
getInterface()
Returns the interface the copyFrom works on.
|
java.lang.String |
getMode()
Returns the content mode.
|
java.lang.String |
getType()
Returns the content type.
|
java.lang.String |
getValue()
Returns the content value.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setMode(java.lang.String mode)
Sets the content mode.
|
void |
setType(java.lang.String type)
Sets the content type.
|
void |
setValue(java.lang.String value)
Sets the content value.
|
java.lang.String |
toString()
Returns the String representation for the object.
|
private static final long serialVersionUID
private static final CopyFromHelper COPY_FROM_HELPER
private final ObjectBean objBean
private java.lang.String type
private java.lang.String value
private java.lang.String mode
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface SyndContent
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- he reference object with which to compare.public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
When used for the description of an entry, if null 'text/plain' must be assumed.
getType
in interface SyndContent
public void setType(java.lang.String type)
When used for the description of an entry, if null 'text/plain' must be assumed.
setType
in interface SyndContent
type
- the content type to set, null if none.public java.lang.String getMode()
getMode
in interface SyndContent
public void setMode(java.lang.String mode)
setMode
in interface SyndContent
mode
- the content mode to set, null if none.public java.lang.String getValue()
getValue
in interface SyndContent
public void setValue(java.lang.String value)
setValue
in interface SyndContent
value
- the content value to set, null if none.public java.lang.Class<SyndContent> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(CopyFrom obj)
CopyFrom
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.