adams.core.net
Class EmailAddress
java.lang.Object
adams.core.base.BaseObject
adams.core.base.AbstractBaseString
adams.core.net.EmailAddress
- All Implemented Interfaces:
- CloneHandler<BaseObject>, Serializable, Comparable
public class EmailAddress
- extends AbstractBaseString
Wrapper for a regular expression string to be editable in the GOE. Basically
the same as BaseString, but checks whether the string represents a valid
address using javax.mail.internet.InternetAddress.
- Version:
- $Revision: 5730 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
|
Constructor Summary |
EmailAddress()
Initializes the email address with a dummy one. |
EmailAddress(String s)
Initializes the object with the string to parse. |
|
Method Summary |
String |
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned). |
boolean |
isValid(String value)
Checks whether the string value is a valid presentation for this class. |
EmailAddress
public EmailAddress()
- Initializes the email address with a dummy one.
EmailAddress
public EmailAddress(String s)
- Initializes the object with the string to parse.
- Parameters:
s - the string to parse
isValid
public boolean isValid(String value)
- Checks whether the string value is a valid presentation for this class.
- Overrides:
isValid in class AbstractBaseString
- Parameters:
value - the string value to check
- Returns:
- true if valid email address
- See Also:
InternetAddress
getTipText
public String getTipText()
- Returns a tool tip for the GUI editor (ignored if null is returned).
- Specified by:
getTipText in class AbstractBaseString
- Returns:
- the tool tip
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.