|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.atom.AtomPerson
public class AtomPerson
The Person construct Per RFC4287
A Person construct is an element that describes a person, corporation, or similar entity (hereafter, 'person'). atomPersonConstruct = atomCommonAttributes, (element atom:name { text } & element atom:uri { atomUri }? & element atom:email { atomEmailAddress }? & extensionElement*) This specification assigns no significance to the order of appearance of the child elements in a Person construct. Person constructs allow extension Metadata elements (see Section 6.4). 3.2.1 The "atom:name" Element The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element. 3.2.2 The "atom:uri" Element The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987]. 3.2.3 The "atom:email" Element The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].
Field Summary | |
---|---|
protected java.util.List<org.w3c.dom.Element> |
any
|
protected java.lang.String |
email
|
protected java.lang.String |
name
|
protected java.lang.String |
uri
|
Constructor Summary | |
---|---|
AtomPerson()
|
|
AtomPerson(SyndPerson value)
|
Method Summary | |
---|---|
java.util.List<org.w3c.dom.Element> |
getAny()
Gets extension elements |
java.lang.String |
getEmail()
Gets the value of email. |
java.lang.String |
getName()
Gets the value of name. |
java.lang.String |
getUri()
Gets the value of uri. |
void |
setEmail(java.lang.String value)
Sets the value of email. |
void |
setName(java.lang.String value)
Sets the value of name. |
void |
setUri(java.lang.String value)
Sets the value of uri. |
SyndPerson |
toSynd(SyndPerson value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String email
protected java.util.List<org.w3c.dom.Element> any
protected java.lang.String name
protected java.lang.String uri
Constructor Detail |
---|
public AtomPerson()
public AtomPerson(SyndPerson value)
Method Detail |
---|
public SyndPerson toSynd(SyndPerson value)
public java.lang.String getEmail()
public void setEmail(java.lang.String value)
public java.util.List<org.w3c.dom.Element> getAny()
This accessor method returns a reference to the live list, not a
snapshot. Therefore any modification you make to the returned list will
be present inside the JAXB object. This is why there is not a
set
method for the any.
For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list Element
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getUri()
public void setUri(java.lang.String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |