Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.feed.synd
Class SyndContentImpl  view SyndContentImpl download SyndContentImpl.java

java.lang.Object
  extended bycom.sun.syndication.feed.synd.SyndContentImpl
All Implemented Interfaces:
java.lang.Cloneable, com.sun.syndication.feed.CopyFrom, java.io.Serializable, SyndContent

public class SyndContentImpl
extends java.lang.Object
implements java.io.Serializable, SyndContent

Bean for content of SyndFeedImpl entries.


Field Summary
private  com.sun.syndication.feed.impl.ObjectBean _objBean
           
private  java.lang.String _type
           
private  java.lang.String _value
           
private static com.sun.syndication.feed.impl.CopyFromHelper COPY_FROM_HELPER
           
 
Constructor Summary
SyndContentImpl()
          Default constructor.
 
Method Summary
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 void copyFrom(java.lang.Object 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 getInterface()
          Returns the interface the copyFrom works on.
 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 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_objBean

private com.sun.syndication.feed.impl.ObjectBean _objBean

_type

private java.lang.String _type

_value

private java.lang.String _value

COPY_FROM_HELPER

private static final com.sun.syndication.feed.impl.CopyFromHelper COPY_FROM_HELPER
Constructor Detail

SyndContentImpl

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

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a deep 'bean' clone of the object.

Specified by:
clone in interface SyndContent

equals

public boolean equals(java.lang.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 java.lang.String toString()
Returns the String representation for the object.


getType

public java.lang.String getType()
Returns the content type.

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

Specified by:
getType in interface SyndContent

setType

public void setType(java.lang.String type)
Sets the content type.

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

Specified by:
setType in interface SyndContent

getValue

public java.lang.String getValue()
Returns the content value.

Specified by:
getValue in interface SyndContent

setValue

public void setValue(java.lang.String value)
Sets the content value.

Specified by:
setValue in interface SyndContent

getInterface

public java.lang.Class getInterface()
Description copied from interface: com.sun.syndication.feed.CopyFrom
Returns the interface the copyFrom works on.

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

Specified by:
getInterface in interface com.sun.syndication.feed.CopyFrom

copyFrom

public void copyFrom(java.lang.Object obj)
Description copied from interface: com.sun.syndication.feed.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.

Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom