Class Person
Person constructs are used to describe authors, contributors, and other people or entities associated with a feed or entry. Each person construct contains a name and optionally a URI and email address.
Person constructs appear in several places:
atom:author - Indicates the author(s) of a feed or entryatom:contributor - Indicates those who contributed to a feed or entry
Schema
atomPersonConstruct = atomCommonAttributes, (element atom:name { text } & element atom:uri { atomUri }? & element atom:email { atomEmailAddress }? & extensionElement*)
Example:
Specification:
Represents an
See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Person
Normal constructor.- Parameters:
name
- The name of the person.
-
Person
public Person()Bean constructor.
-
-
Method Details
-
getName
Bean property getter:name .Returns the human-readable name for the person (required).
- Returns:
- The property value, or
null if it is not set.
-
setName
Bean property setter:name .Sets the human-readable name for the person (required).
Example:
Person
person =new Person("Jane Doe" );- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
getUri
Bean property getter:uri .Returns a URI associated with the person.
Typically this is a personal website or profile page.
- Returns:
- The property value, or
null if it is not set.
-
setUri
Bean property setter:uri .Sets a URI associated with the person (typically a website or profile page).
The value can be of any of the following types:
URI
,URL
,String
. Strings must be valid URIs.Example:
Person
person =new Person("Jane Doe" ) .setUri("http://example.org/~jane" );- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
getEmail
Bean property getter:email .Returns the email address associated with the person.
- Returns:
- The property value, or
null if it is not set.
-
setEmail
Bean property setter:email .Sets the email address associated with the person.
Example:
Person
person =new Person("Jane Doe" ) .setEmail("jane@example.org" );- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setBase
Description copied from class:Common
-
setLang
Description copied from class:Common
Bean property setter:lang .Sets the natural language of the element's content (xml:lang attribute).
Example:
Text
title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );
-