final class Email extends XmlAdapter<Email,String>
An email address broken into two parts (id and domain) to help prevent email harvesting. This class also implements its own converter for getting the String representation at unmarshalling time.
Since:
0.8
Version:
0.8
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) String
    The half after @ in email address (for example "hotmail.com").
    (package private) String
    The half before @ in email address (for example "john.smith").
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invoked by JAXB at (un)marshalling time.
  • Method Summary

    Modifier and Type
    Method
    Description
    marshal(String address)
    Invoked at writing time for splitting an email address into two components.
    Returns the complete email address.
    unmarshal(Email address)
    Invoked at reading time for creating the full email address from its components.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      String id
      The half before @ in email address (for example "john.smith").
    • domain

      String domain
      The half after @ in email address (for example "hotmail.com").
  • Constructor Details

    • Email

      public Email()
      Invoked by JAXB at (un)marshalling time.
  • Method Details