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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.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


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:
getUrl in interface SyndEnclosure

setUrl

public void setUrl(java.lang.String url)
Sets the enclosure URL.

Specified by:
setUrl in interface SyndEnclosure

getLength

public long getLength()
Returns the enclosure length.

Specified by:
getLength in interface SyndEnclosure

setLength

public void setLength(long length)
Sets the enclosure length.

Specified by:
setLength in interface SyndEnclosure

getType

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

Specified by:
getType in interface SyndEnclosure

setType

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

Specified by:
setType in interface SyndEnclosure

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