com.sun.syndication.feed.atom
Class Person

java.lang.Object
  extended by com.sun.syndication.feed.atom.Person
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Person
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Bean for person elements of Atom feeds.

Author:
Alejandro Abdelnur, Dave Johnson (updated for Atom 1.0)
See Also:
Serialized Form

Field Summary
private  java.lang.String _email
           
private  java.lang.String _name
           
private  ObjectBean _objBean
           
private  java.lang.String _uri
           
 
Constructor Summary
Person()
          Default constructor.
 
Method Summary
 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.
 java.lang.String getName()
          Returns the person name.
 java.lang.String getUri()
          Returns the uri
 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 setName(java.lang.String name)
          Sets the personname.
 void setUri(java.lang.String uri)
          Set the uri
 void setUrl(java.lang.String url)
          Sets the person URL (same as setUri())
 java.lang.String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_objBean

private ObjectBean _objBean

_name

private java.lang.String _name

_uri

private java.lang.String _uri

_email

private java.lang.String _email
Constructor Detail

Person

public Person()
Default constructor. All properties are set to null.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a deep 'bean' clone of the object.

Overrides:
clone in class java.lang.Object
Returns:
a clone of the object.
Throws:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

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

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode of the bean object.

toString

public java.lang.String toString()
Returns the String representation for the object.

Overrides:
toString in class java.lang.Object
Returns:
String representation for the object.

getName

public java.lang.String getName()
Returns the person name.

Returns:
the person name, null if none.

setName

public void setName(java.lang.String name)
Sets the personname.

Parameters:
name - the person name, null if none.

getUrl

public java.lang.String getUrl()
Returns the person URL (same as getUri())

Returns:
the person URL, null if none.

setUrl

public void setUrl(java.lang.String url)
Sets the person URL (same as setUri())

Parameters:
url - the person URL, null if none.

getEmail

public java.lang.String getEmail()
Returns the person email.

Returns:
the person email, null if none.

setEmail

public void setEmail(java.lang.String email)
Sets the person email.

Parameters:
email - the person email, null if none.

getUri

public java.lang.String getUri()
Returns the uri

Returns:
Returns the uri.
Since:
Atom 1.0

setUri

public void setUri(java.lang.String uri)
Set the uri

Parameters:
uri - The uri to set.
Since:
Atom 1.0


Copyright © Sun Microsystems. All Rights Reserved.