Interface Person

  • All Superinterfaces:
    Base, java.lang.Cloneable, Element, ExtensibleElement, java.lang.Iterable<Element>
    All Known Implementing Classes:
    PersonWrapper

    @Deprecated(since="2021-07-29")
    public interface Person
    extends ExtensibleElement, Element
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.

    An Atom 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*)
    
      
    • Method Detail

      • getNameElement

        Element getNameElement()
        Deprecated.
        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.
        Returns:
        The atom:name element
      • setNameElement

        Person setNameElement​(Element element)
        Deprecated.
        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.
        Parameters:
        element - The atom:name element
      • setName

        Element setName​(java.lang.String name)
        Deprecated.
        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.
        Parameters:
        name - The person name
        Returns:
        The newly created atom:name element
      • getName

        java.lang.String getName()
        Deprecated.
        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.
        Returns:
        The name value
      • getEmailElement

        Element getEmailElement()
        Deprecated.
        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].
        Returns:
        the atom:email element
      • setEmailElement

        Person setEmailElement​(Element element)
        Deprecated.
        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].
        Parameters:
        element - The atom:email element
      • setEmail

        Element setEmail​(java.lang.String email)
        Deprecated.
        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].
        Parameters:
        email - The person email
        Returns:
        the newly created atom:email element
      • getEmail

        java.lang.String getEmail()
        Deprecated.
        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].
        Returns:
        the person's emali
      • getUriElement

        IRIElement getUriElement()
        Deprecated.
        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].
        Returns:
        the atom:uri element
      • setUriElement

        Person setUriElement​(IRIElement uri)
        Deprecated.
        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].
        Parameters:
        uri - The atom:uri element
      • setUri

        IRIElement setUri​(java.lang.String uri)
        Deprecated.
        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].
        Parameters:
        uri - The atom:uri value
        Throws:
        IRISyntaxException - if the uri is malformed
      • getUri

        IRI getUri()
        Deprecated.
        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].
        Returns:
        The atom:uri value
        Throws:
        IRISyntaxException - if the uri is invalid