|
|||||||||
| Home >> All >> com >> sun >> syndication >> feed >> [ synd overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sun.syndication.feed.synd
Class SyndEnclosureImpl

java.lang.Objectcom.sun.syndication.feed.synd.SyndEnclosureImpl
- All Implemented Interfaces:
- java.lang.Cloneable, com.sun.syndication.feed.CopyFrom, java.io.Serializable, SyndEnclosure
- public class SyndEnclosureImpl
- extends java.lang.Object
- implements java.io.Serializable, SyndEnclosure
- extends java.lang.Object
| Field Summary | |
private long |
_length
|
private com.sun.syndication.feed.impl.ObjectBean |
_objBean
|
private java.lang.String |
_type
|
private java.lang.String |
_url
|
private static com.sun.syndication.feed.impl.CopyFromHelper |
COPY_FROM_HELPER
|
| Constructor Summary | |
SyndEnclosureImpl()
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. |
long |
getLength()
Returns the enclosure length. |
java.lang.String |
getType()
Returns the enclosure type. |
java.lang.String |
getUrl()
Returns the enclosure URL. |
int |
hashCode()
Returns a hashcode value for the object. |
void |
setLength(long length)
Sets the enclosure length. |
void |
setType(java.lang.String type)
Sets the enclosure type. |
void |
setUrl(java.lang.String url)
Sets the enclosure URL. |
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
_url
private java.lang.String _url
_type
private java.lang.String _type
_length
private long _length
COPY_FROM_HELPER
private static final com.sun.syndication.feed.impl.CopyFromHelper COPY_FROM_HELPER
| Constructor Detail |
SyndEnclosureImpl
public SyndEnclosureImpl()
- 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.
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.
getUrl
public java.lang.String getUrl()
- Returns the enclosure URL.
- Specified by:
getUrlin interfaceSyndEnclosure
setUrl
public void setUrl(java.lang.String url)
- Sets the enclosure URL.
- Specified by:
setUrlin interfaceSyndEnclosure
getLength
public long getLength()
- Returns the enclosure length.
- Specified by:
getLengthin interfaceSyndEnclosure
setLength
public void setLength(long length)
- Sets the enclosure length.
- Specified by:
setLengthin interfaceSyndEnclosure
getType
public java.lang.String getType()
- Returns the enclosure type.
- Specified by:
getTypein interfaceSyndEnclosure
setType
public void setType(java.lang.String type)
- Sets the enclosure type.
- Specified by:
setTypein interfaceSyndEnclosure
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:
getInterfacein interfacecom.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:
copyFromin interfacecom.sun.syndication.feed.CopyFrom
|
|||||||||
| Home >> All >> com >> sun >> syndication >> feed >> [ synd overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sun.syndication.feed.synd.SyndEnclosureImpl