com.thirtyboxes.api
Class Email

java.lang.Object
  extended by com.thirtyboxes.api.Email

public class Email
extends java.lang.Object

Encapsulates a 30 Boxes user's email address (of which she may have more than one).

Version:
1.0
Author:
keith@kludge.co.uk
See Also:
User

Constructor Summary
protected Email(org.w3c.dom.Node emailNode)
          XML Node constructor.
 
Method Summary
 java.lang.String getAddress()
          Returns the email address.
 boolean isPrimary()
          Is this the primary email address for this user?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Email

protected Email(org.w3c.dom.Node emailNode)
XML Node constructor. Creates the object from an object in the REST XML.

Parameters:
emailNode - XML node from a User object
Method Detail

getAddress

public java.lang.String getAddress()
Returns the email address.

Returns:
A string of this email address.

isPrimary

public boolean isPrimary()
Is this the primary email address for this user?

Returns:
true if this is the primary address, false otherwise.