Top Description Fields Constructors Methods
com.rometools.rome.feed.synd

public Class SyndContentImpl

extends Object
implements Serializable, SyndContent
Class Inheritance
All Implemented Interfaces
com.rometools.rome.feed.synd.SyndContent, com.rometools.rome.feed.CopyFrom, java.lang.Cloneable, java.io.Serializable
Imports
java.io.Serializable, java.util.Collections, .HashMap, .Map, com.rometools.rome.feed.CopyFrom, com.rometools.rome.feed.impl.CloneableBean, .CopyFromHelper, .EqualsBean, .ToStringBean

Bean for content of SyndFeedImpl entries.

Field Summary

Modifier and TypeField and Description
private static final CopyFromHelper
private String
private static final long
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndContent.clone.

Creates a deep 'bean' clone of the object.
public void
copyFrom(final CopyFrom
the instance to copy properties from.
obj
)

Implements com.rometools.rome.feed.CopyFrom.copyFrom.

Copies all the properties of the given bean into this one.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
public Class<SyndContent>
getInterface()

Implements com.rometools.rome.feed.CopyFrom.getInterface.

Returns the interface the copyFrom works on.
public String

Returns:

the content mode, null if none.
getMode
()

Implements com.rometools.rome.feed.synd.SyndContent.getMode.

Returns the content mode.
public String

Returns:

the content type, null if none.
getType
()

Implements com.rometools.rome.feed.synd.SyndContent.getType.

Returns the content type.
public String

Returns:

the content value, null if none.
getValue
()

Implements com.rometools.rome.feed.synd.SyndContent.getValue.

Returns the content value.
public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setMode(final String
the content mode to set, null if none.
mode
)

Implements com.rometools.rome.feed.synd.SyndContent.setMode.

Sets the content mode.
public void
setType(final String
the content type to set, null if none.
type
)

Implements com.rometools.rome.feed.synd.SyndContent.setType.

Sets the content type.
public void
setValue(final String
the content value to set, null if none.
value
)

Implements com.rometools.rome.feed.synd.SyndContent.setValue.

Sets the content value.
public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

COPY_FROM_HELPERback to summary
private static final CopyFromHelper COPY_FROM_HELPER
modeback to summary
private String mode
serialVersionUIDback to summary
private static final long serialVersionUID
typeback to summary
private String type
valueback to summary
private String value

Constructor Detail

SyndContentImplback to summary
public SyndContentImpl()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndContent.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
copyFromback to summary
public void copyFrom(final CopyFrom obj)

Implements com.rometools.rome.feed.CopyFrom.copyFrom.

Doc from com.rometools.rome.feed.CopyFrom.copyFrom.

Copies 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.

Parameters
obj:CopyFrom

the instance to copy properties from.

Annotations
@Override
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

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

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

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

Annotations
@Override
getInterfaceback to summary
public Class<SyndContent> getInterface()

Implements com.rometools.rome.feed.CopyFrom.getInterface.

Doc from com.rometools.rome.feed.CopyFrom.getInterface.

Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, Module.

Returns:Class<SyndContent>

the interface the copyFrom works on.

Annotations
@Override
getModeback to summary
public String getMode()

Implements com.rometools.rome.feed.synd.SyndContent.getMode.

Returns the content mode.

Returns:String

the content mode, null if none.

Annotations
@Override
getTypeback to summary
public String getType()

Implements com.rometools.rome.feed.synd.SyndContent.getType.

Returns the content type.

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

Returns:String

the content type, null if none.

Annotations
@Override
getValueback to summary
public String getValue()

Implements com.rometools.rome.feed.synd.SyndContent.getValue.

Returns the content value.

Returns:String

the content value, null if none.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

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

Returns:int

the hashcode of the bean object.

Annotations
@Override
setModeback to summary
public void setMode(final String mode)

Implements com.rometools.rome.feed.synd.SyndContent.setMode.

Sets the content mode.

Parameters
mode:String

the content mode to set, null if none.

Annotations
@Override
setTypeback to summary
public void setType(final String type)

Implements com.rometools.rome.feed.synd.SyndContent.setType.

Sets the content type.

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

Parameters
type:String

the content type to set, null if none.

Annotations
@Override
setValueback to summary
public void setValue(final String value)

Implements com.rometools.rome.feed.synd.SyndContent.setValue.

Sets the content value.

Parameters
value:String

the content value to set, null if none.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override