Top Description Fields Constructors Methods
com.rometools.rome.feed.synd

public Class SyndPersonImpl

extends Object
implements Serializable, SyndPerson
Class Inheritance
All Implemented Interfaces
com.rometools.rome.feed.synd.SyndPerson, com.rometools.rome.feed.module.Extendable, java.lang.Cloneable, java.io.Serializable
Imports
java.io.Serializable, java.util.Collections, .List, com.rometools.rome.feed.impl.CloneableBean, .EqualsBean, .ToStringBean, com.rometools.rome.feed.module.Module, com.rometools.rome.feed.module.impl.ModuleUtils, com.rometools.utils.Lists

Bean for authors and contributors of SyndFeedImpl feeds and entries.

Field Summary

Modifier and TypeField and Description
private String
private List<Module>
private String
private static final long
private String

Constructor Summary

AccessConstructor and Description
public
SyndPersonImpl()

For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndPerson.clone.

Creates a deep 'bean' clone of the object.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
public String

Returns:

the person's e-mail address, null if none.
getEmail
()

Implements com.rometools.rome.feed.synd.SyndPerson.getEmail.

Returns the person's e-mail address.
public Module

Returns:

The module with the given URI, null if none.
getModule
(final String
the URI of the ModuleImpl.
uri
)

Implements com.rometools.rome.feed.module.Extendable.getModule.

Returns the module identified by a given URI.
public List<Module>

Returns:

a list of ModuleImpl elements with the person modules, an empty list if none.
getModules
()

Implements com.rometools.rome.feed.module.Extendable.getModules.

Returns the person modules.
public String

Returns:

the person name, null if none.
getName
()

Implements com.rometools.rome.feed.synd.SyndPerson.getName.

Returns the person name.
public String

Returns:

the person's URI, null if none.
getUri
()

Implements com.rometools.rome.feed.synd.SyndPerson.getUri.

Returns the person's URI.
public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setEmail(final String
The person's e-mail address to set, null if none.
email
)

Implements com.rometools.rome.feed.synd.SyndPerson.setEmail.

Sets the person's e-mail address.
public void
setModules(final List<Module>
the list of ModuleImpl elements with the person modules to set, an empty list or null if none.
modules
)

Implements com.rometools.rome.feed.module.Extendable.setModules.

Sets the person modules.
public void
setName(final String
the category name to set, null if none.
name
)

Implements com.rometools.rome.feed.synd.SyndPerson.setName.

Sets the category name.
public void
setUri(final String
the peron's URI to set, null if none.
uri
)

Implements com.rometools.rome.feed.synd.SyndPerson.setUri.

Sets the person's URI.
public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

emailback to summary
private String email
modulesback to summary
private List<Module> modules
nameback to summary
private String name
serialVersionUIDback to summary
private static final long serialVersionUID
uriback to summary
private String uri

Constructor Detail

SyndPersonImplback to summary
public SyndPersonImpl()

For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndPerson.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

true if 'this' object is equal to the 'other' object.

Annotations
@Override
getEmailback to summary
public String getEmail()

Implements com.rometools.rome.feed.synd.SyndPerson.getEmail.

Returns the person's e-mail address.

Returns:String

the person's e-mail address, null if none.

Annotations
@Override
getModuleback to summary
public Module getModule(final String uri)

Implements com.rometools.rome.feed.module.Extendable.getModule.

Returns the module identified by a given URI.

Parameters
uri:String

the URI of the ModuleImpl.

Returns:Module

The module with the given URI, null if none.

Annotations
@Override
getModulesback to summary
public List<Module> getModules()

Implements com.rometools.rome.feed.module.Extendable.getModules.

Returns the person modules.

Returns:List<Module>

a list of ModuleImpl elements with the person modules, an empty list if none.

Annotations
@Override
getNameback to summary
public String getName()

Implements com.rometools.rome.feed.synd.SyndPerson.getName.

Returns the person name.

Returns:String

the person name, null if none.

Annotations
@Override
getUriback to summary
public String getUri()

Implements com.rometools.rome.feed.synd.SyndPerson.getUri.

Returns the person's URI.

Returns:String

the person's URI, null if none.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns:int

the hashcode of the bean object.

Annotations
@Override
setEmailback to summary
public void setEmail(final String email)

Implements com.rometools.rome.feed.synd.SyndPerson.setEmail.

Sets the person's e-mail address.

Parameters
email:String

The person's e-mail address to set, null if none.

Annotations
@Override
setModulesback to summary
public void setModules(final List<Module> modules)

Implements com.rometools.rome.feed.module.Extendable.setModules.

Sets the person modules.

Parameters
modules:List<Module>

the list of ModuleImpl elements with the person modules to set, an empty list or null if none.

Annotations
@Override
setNameback to summary
public void setName(final String name)

Implements com.rometools.rome.feed.synd.SyndPerson.setName.

Sets the category name.

Parameters
name:String

the category name to set, null if none.

Annotations
@Override
setUriback to summary
public void setUri(final String uri)

Implements com.rometools.rome.feed.synd.SyndPerson.setUri.

Sets the person's URI.

Parameters
uri:String

the peron's URI to set, null if none.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override