public class Person extends java.lang.Object implements SyndPerson, java.lang.Cloneable, java.io.Serializable, Extendable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
email |
private java.util.List<Module> |
modules |
private java.lang.String |
name |
private ObjectBean |
objBean |
private static long |
serialVersionUID |
private java.lang.String |
uri |
private java.lang.String |
uriResolved |
Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
java.lang.String |
getEmail()
Returns the person email.
|
Module |
getModule(java.lang.String uri)
Returns the module identified by a given URI.
|
java.util.List<Module> |
getModules()
Returns the entry modules.
|
java.lang.String |
getName()
Returns the person name.
|
java.lang.String |
getUri()
Returns the uri
|
java.lang.String |
getUriResolved(java.lang.String resolveURI) |
java.lang.String |
getUrl()
Returns the person URL (same as
getUri() ) |
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setEmail(java.lang.String email)
Sets the person email.
|
void |
setModules(java.util.List<Module> modules)
Sets the entry modules.
|
void |
setName(java.lang.String name)
Sets the personname.
|
void |
setUri(java.lang.String uri)
Set the uri
|
void |
setUriResolved(java.lang.String uriResolved) |
void |
setUrl(java.lang.String url)
Sets the person URL (same as
setUri(java.lang.String) ) |
java.lang.String |
toString()
Returns the String representation for the object.
|
private static final long serialVersionUID
private final ObjectBean objBean
private java.lang.String name
private java.lang.String uri
private java.lang.String uriResolved
private java.lang.String email
private java.util.List<Module> modules
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface SyndPerson
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- he reference object with which to compare.public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
getName
in interface SyndPerson
public void setName(java.lang.String name)
setName
in interface SyndPerson
name
- the person name, null if none.public java.lang.String getUrl()
getUri()
)
public void setUrl(java.lang.String url)
setUri(java.lang.String)
)
url
- the person URL, null if none.public void setUriResolved(java.lang.String uriResolved)
public java.lang.String getUriResolved(java.lang.String resolveURI)
public java.lang.String getEmail()
getEmail
in interface SyndPerson
public void setEmail(java.lang.String email)
setEmail
in interface SyndPerson
email
- the person email, null if none.public java.lang.String getUri()
getUri
in interface SyndPerson
public void setUri(java.lang.String uri)
setUri
in interface SyndPerson
uri
- The uri to set.public java.util.List<Module> getModules()
getModules
in interface Extendable
public void setModules(java.util.List<Module> modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the entry modules to set, an empty list
or null if none.public Module getModule(java.lang.String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.