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

public Class Person

extends Object
implements SyndPerson, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.rometools.rome.feed.synd.SyndPerson, com.rometools.rome.feed.module.Extendable, java.lang.Cloneable
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.rome.feed.synd.SyndPerson, com.rometools.utils.Alternatives, .Lists

Bean for person elements of Atom feeds.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

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 email, null if none.
getEmail
()

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

Returns the person email.
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 entry modules, an emtpy list if none.
getModules
()

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

Returns the entry 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:

Returns the uri.
getUri
()

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

Returns the uri

public String
getUriResolved(final String resolveURI)

public String

Returns:

the person URL, null if none.
getUrl
()

Returns the person URL (same as getUri())

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 email, null if none.
email
)

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

Sets the person email.
public void
setModules(final List<Module>
the list of ModuleImpl elements with the entry modules to set, an empty list or null if none.
modules
)

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

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

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

Sets the personname.
public void
setUri(final String
The uri to set.
uri
)

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

Set the uri

public void
setUriResolved(final String uriResolved)

public void
setUrl(final String
the person URL, null if none.
url
)

Sets the person URL (same as setUri(java.lang.String))

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
uriResolvedback to summary
private String uriResolved

Constructor Detail

Personback to summary
public Person()

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 email.

Returns:String

the person email, 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 entry modules.

Returns:List<Module>

a list of ModuleImpl elements with the entry modules, an emtpy 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 uri

Returns:String

Returns the uri.

Annotations
@Override
Since
Atom 1.0
getUriResolvedback to summary
public String getUriResolved(final String resolveURI)
getUrlback to summary
public String getUrl()

Returns the person URL (same as getUri())

Returns:String

the person URL, null if none.

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 email.

Parameters
email:String

the person email, 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 entry modules.

Parameters
modules:List<Module>

the list of ModuleImpl elements with the entry 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 personname.

Parameters
name:String

the person name, null if none.

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

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

Set the uri

Parameters
uri:String

The uri to set.

Annotations
@Override
Since
Atom 1.0
setUriResolvedback to summary
public void setUriResolved(final String uriResolved)
setUrlback to summary
public void setUrl(final String url)

Sets the person URL (same as setUri(java.lang.String))

Parameters
url:String

the person URL, null if none.

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