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 GranteeInterface
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.FactoryConfigurationError
toXMLBuilder
in interface GranteeInterface
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
public void setIdentifier(java.lang.String emailAddress)
setIdentifier
in interface GranteeInterface
public java.lang.String getIdentifier()
getIdentifier
in interface GranteeInterface
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object