public class SyndEnclosureImpl extends Object implements Serializable, SyndEnclosure
| Constructor and Description |
|---|
SyndEnclosureImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
void |
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.
|
boolean |
equals(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.
|
long |
getLength()
Returns the enclosure length.
|
String |
getType()
Returns the enclosure type.
|
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(String type)
Sets the enclosure type.
|
void |
setUrl(String url)
Sets the enclosure URL.
|
String |
toString()
Returns the String representation for the object.
|
public SyndEnclosureImpl()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getUrl()
getUrl in interface SyndEnclosurepublic void setUrl(String url)
setUrl in interface SyndEnclosureurl - the enclosure URL to set, null if none.public long getLength()
getLength in interface SyndEnclosurepublic void setLength(long length)
setLength in interface SyndEnclosurelength - the enclosure length to set, null if none.public String getType()
getType in interface SyndEnclosurepublic void setType(String type)
setType in interface SyndEnclosuretype - the enclosure type to set, null if none.public Class<SyndEnclosure> getInterface()
CopyFromThis is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface in interface CopyFrompublic void copyFrom(CopyFrom obj)
CopyFromAny 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.
Copyright © 2015. All Rights Reserved.