public class SyndPersonImpl extends Object implements Serializable, SyndPerson
Constructor and Description |
---|
SyndPersonImpl()
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality
with extended interfaces.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
String |
getEmail()
Returns the person's e-mail address.
|
Module |
getModule(String uri)
Returns the module identified by a given URI.
|
List<Module> |
getModules()
Returns the person modules.
|
String |
getName()
Returns the person name.
|
String |
getUri()
Returns the person's URI.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setEmail(String email)
Sets the person's e-mail address.
|
void |
setModules(List<Module> modules)
Sets the person modules.
|
void |
setName(String name)
Sets the category name.
|
void |
setUri(String uri)
Sets the person's URI.
|
String |
toString()
Returns the String representation for the object.
|
public SyndPersonImpl()
public Object clone() throws CloneNotSupportedException
clone
in interface SyndPerson
clone
in class Object
CloneNotSupportedException
- 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 getName()
getName
in interface SyndPerson
public void setName(String name)
setName
in interface SyndPerson
name
- the category name to set, null if none.public String getEmail()
getEmail
in interface SyndPerson
public void setEmail(String email)
setEmail
in interface SyndPerson
email
- The person's e-mail address to set, null if none.public String getUri()
getUri
in interface SyndPerson
public void setUri(String uri)
setUri
in interface SyndPerson
uri
- the peron's URI to set, null if none.public List<Module> getModules()
getModules
in interface Extendable
public void setModules(List<Module> modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the person modules to set, an empty list
or null if none.public Module getModule(String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.Copyright © 2021. All rights reserved.