package org.jboss.resteasy.plugins.providers.atom;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import java.net.URI;
/**
* <p>Per RFC4287:</p>
* <p/>
* <pre>
* A Person construct is an element that describes a person,
* corporation, or similar entity (hereafter, 'person').
* <p/>
* atomPersonConstruct =
* atomCommonAttributes,
* (element atom:name { text }
* & element atom:uri { atomUri }?
* & element atom:email { atomEmailAddress }?
* & extensionElement*)
* <p/>
* </pre>
*
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Person extends CommonAttributes
{
private String name;
private URI uri;
private String email;
public Person()
{
}
public Person(String name)
{
this.name = name;
}
@XmlElement
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
@XmlElement
public URI getUri()
{
return uri;
}
public void setUri(URI uri)
{
this.uri = uri;
}
@XmlElement
public String getEmail()
{
return email;
}
public void setEmail(String email)
{
this.email = email;
}
}