Package com.rometools.rome.feed.atom
Class Person
- java.lang.Object
-
- com.rometools.rome.feed.atom.Person
-
- All Implemented Interfaces:
Extendable,SyndPerson,Serializable,Cloneable
public class Person extends Object implements SyndPerson, Cloneable, Serializable, Extendable
Bean for person elements of Atom feeds.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Person()
-
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 email.ModulegetModule(String uri)Returns the module identified by a given URI.List<Module>getModules()Returns the entry modules.StringgetName()Returns the person name.StringgetUri()Returns the uriStringgetUriResolved(String resolveURI)StringgetUrl()Returns the person URL (same asgetUri())inthashCode()Returns a hashcode value for the object.voidsetEmail(String email)Sets the person email.voidsetModules(List<Module> modules)Sets the entry modules.voidsetName(String name)Sets the personname.voidsetUri(String uri)Set the urivoidsetUriResolved(String uriResolved)voidsetUrl(String url)Sets the person URL (same assetUri(java.lang.String))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 personname.- Specified by:
setNamein interfaceSyndPerson- Parameters:
name- the person name, null if none.
-
getUrl
public String getUrl()
Returns the person URL (same asgetUri())- Returns:
- the person URL, null if none.
-
setUrl
public void setUrl(String url)
Sets the person URL (same assetUri(java.lang.String))- Parameters:
url- the person URL, null if none.
-
setUriResolved
public void setUriResolved(String uriResolved)
-
getEmail
public String getEmail()
Returns the person email.- Specified by:
getEmailin interfaceSyndPerson- Returns:
- the person email, null if none.
-
setEmail
public void setEmail(String email)
Sets the person email.- Specified by:
setEmailin interfaceSyndPerson- Parameters:
email- the person email, null if none.
-
getUri
public String getUri()
Returns the uri- Specified by:
getUriin interfaceSyndPerson- Returns:
- Returns the uri.
- Since:
- Atom 1.0
-
setUri
public void setUri(String uri)
Set the uri- Specified by:
setUriin interfaceSyndPerson- Parameters:
uri- The uri to set.- Since:
- Atom 1.0
-
getModules
public List<Module> getModules()
Returns the entry modules.- Specified by:
getModulesin interfaceExtendable- Returns:
- a list of ModuleImpl elements with the entry modules, an emtpy list if none.
-
setModules
public void setModules(List<Module> modules)
Sets the entry modules.- Specified by:
setModulesin interfaceExtendable- Parameters:
modules- the list of ModuleImpl elements with the entry 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.
-
-