Package com.rometools.rome.feed.synd
Class SyndPersonImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndPersonImpl
-
- All Implemented Interfaces:
Extendable,SyndPerson,Serializable,Cloneable
public class SyndPersonImpl extends Object implements Serializable, SyndPerson
Bean for authors and contributors of SyndFeedImpl feeds and entries.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndPersonImpl()For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.StringgetEmail()Returns the person's e-mail address.ModulegetModule(String uri)Returns the module identified by a given URI.List<Module>getModules()Returns the person modules.StringgetName()Returns the person name.StringgetUri()Returns the person's URI.inthashCode()Returns a hashcode value for the object.voidsetEmail(String email)Sets the person's e-mail address.voidsetModules(List<Module> modules)Sets the person modules.voidsetName(String name)Sets the category name.voidsetUri(String uri)Sets the person's URI.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceSyndPerson- 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.
-
getName
public String getName()
Returns the person name.- Specified by:
getNamein interfaceSyndPerson- Returns:
- the person name, null if none.
-
setName
public void setName(String name)
Sets the category name.- Specified by:
setNamein interfaceSyndPerson- Parameters:
name- the category name to set, null if none.
-
getEmail
public String getEmail()
Returns the person's e-mail address.- Specified by:
getEmailin interfaceSyndPerson- Returns:
- the person's e-mail address, null if none.
-
setEmail
public void setEmail(String email)
Sets the person's e-mail address.- Specified by:
setEmailin interfaceSyndPerson- Parameters:
email- The person's e-mail address to set, null if none.
-
getUri
public String getUri()
Returns the person's URI.- Specified by:
getUriin interfaceSyndPerson- Returns:
- the person's URI, null if none.
-
setUri
public void setUri(String uri)
Sets the person's URI.- Specified by:
setUriin interfaceSyndPerson- Parameters:
uri- the peron's URI to set, null if none.
-
getModules
public List<Module> getModules()
Returns the person modules.- Specified by:
getModulesin interfaceExtendable- Returns:
- a list of ModuleImpl elements with the person modules, an empty list if none.
-
setModules
public void setModules(List<Module> modules)
Sets the person modules.- Specified by:
setModulesin interfaceExtendable- Parameters:
modules- the list of ModuleImpl elements with the person modules to set, an empty list or null if none.
-
getModule
public Module getModule(String uri)
Returns the module identified by a given URI.- Specified by:
getModulein interfaceExtendable- Parameters:
uri- the URI of the ModuleImpl.- Returns:
- The module with the given URI, null if none.
-
-