public class EmailAddressGrantee extends java.lang.Object implements GranteeInterface
| Constructor and Description |
|---|
EmailAddressGrantee()
Default construtor.
|
EmailAddressGrantee(java.lang.String emailAddress)
Constructs an email grantee with the given email address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentifier()
Returns the grantee's email address (ID).
|
int |
hashCode() |
void |
setIdentifier(java.lang.String emailAddress)
Set the email address as the grantee's ID.
|
java.lang.String |
toXml() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public EmailAddressGrantee()
Warning! If this constructor is used the class will not represent a valid email grantee until the identifier has been set.
public EmailAddressGrantee(java.lang.String emailAddress)
emailAddress - Email addresspublic java.lang.String toXml()
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError
toXml in interface GranteeInterfacejavax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.parsers.FactoryConfigurationErrorpublic com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError
toXMLBuilder in interface GranteeInterfacejavax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.parsers.FactoryConfigurationErrorpublic void setIdentifier(java.lang.String emailAddress)
setIdentifier in interface GranteeInterfacepublic java.lang.String getIdentifier()
getIdentifier in interface GranteeInterfacepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object