Package com.rometools.rome.feed.synd
Class SyndEnclosureImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndEnclosureImpl
-
- All Implemented Interfaces:
CopyFrom,SyndEnclosure,Serializable,Cloneable
public class SyndEnclosureImpl extends Object implements Serializable, SyndEnclosure
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndEnclosureImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.voidcopyFrom(CopyFrom obj)Copies all the properties of the given bean into this one.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.Class<SyndEnclosure>getInterface()Returns the interface the copyFrom works on.longgetLength()Returns the enclosure length.StringgetType()Returns the enclosure type.StringgetUrl()Returns the enclosure URL.inthashCode()Returns a hashcode value for the object.voidsetLength(long length)Sets the enclosure length.voidsetType(String type)Sets the enclosure type.voidsetUrl(String url)Sets the enclosure URL.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Overrides:
clonein classObject- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public boolean equals(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 String toString()
Returns the String representation for the object.
-
getUrl
public String getUrl()
Returns the enclosure URL.- Specified by:
getUrlin interfaceSyndEnclosure- Returns:
- the enclosure URL, null if none.
-
setUrl
public void setUrl(String url)
Sets the enclosure URL.- Specified by:
setUrlin interfaceSyndEnclosure- Parameters:
url- the enclosure URL to set, null if none.
-
getLength
public long getLength()
Returns the enclosure length.- Specified by:
getLengthin interfaceSyndEnclosure- Returns:
- the enclosure length, null if none.
-
setLength
public void setLength(long length)
Sets the enclosure length.- Specified by:
setLengthin interfaceSyndEnclosure- Parameters:
length- the enclosure length to set, null if none.
-
getType
public String getType()
Returns the enclosure type.- Specified by:
getTypein interfaceSyndEnclosure- Returns:
- the enclosure type, null if none.
-
setType
public void setType(String type)
Sets the enclosure type.- Specified by:
setTypein interfaceSyndEnclosure- Parameters:
type- the enclosure type to set, null if none.
-
getInterface
public Class<SyndEnclosure> getInterface()
Description copied from interface:CopyFromReturns the interface the copyFrom works on.This is useful when dealing with properties that may have multiple implementations. For example, Module.
- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
copyFrom
public void copyFrom(CopyFrom obj)
Description copied from interface:CopyFromCopies 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.
-
-