org.sandev.ui.structs
Class EmailAddressStruct

java.lang.Object
  extended by org.sandev.ui.structs.EmailAddressStruct
Direct Known Subclasses:
EmailAddress

public class EmailAddressStruct
extends java.lang.Object

A decorated email address used in parsing utility methods. This is not a persistent data structure.

summary fields: name address
help text: An email address.

Field Summary
protected  java.lang.String address
          The base email address.
protected  java.lang.String name
          This is the name for this email address, to the best extent it could be determined.
protected  int validity
          The extent to which the name and address fields are known to be valid or invalid.
 
Constructor Summary
EmailAddressStruct()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

protected java.lang.String address
The base email address. This is the standard format email address without any decoration around it, for example user@domain.com

declared invalid value: "INVALID_ADDRESS"
Length in characters, normal: 30 max: 80
help text: The base email address. This is the standard format email address without any decoration around it, for example user@domain.com

name

protected java.lang.String name
This is the name for this email address, to the best extent it could be determined. So if the email address looks like Support Team >support@meetingsetup.com> then the name would be "Support Team" and the address would be "support@meetingsetup.com"

declared invalid value: "INVALID_NAME"
Length in characters, normal: 30 max: 80
help text: The name associated with this email address.

validity

protected int validity
The extent to which the name and address fields are known to be valid or invalid. If there are typos or extraneous characters in parsed text then this field reflects the status of what was parsed.

declared default value: VALID

enumerated constant values:

  • INVALID("Invalid") = 0
  • NAMEGUESS("Name inferred") = 1
  • VALID("Valid") = 10
  • CONFIRMED("Confirmed") = 11
declared invalid value: -1
help text: The extent to which the name and address fields are known to be valid or invalid.
Constructor Detail

EmailAddressStruct

public EmailAddressStruct()