org.opengts.db
Class Recipients

java.lang.Object
  extended by org.opengts.db.Recipients

public class Recipients
extends java.lang.Object


Constructor Summary
Recipients()
          Constructor: Empty list of recipients
Recipients(java.util.Set<java.lang.String> recipSet)
          Constructor: Set containing a list of EMail/SMS recipients
Recipients(java.lang.String recipCSV)
          Constructor: String containing a comma-separated list of EMail/SMS recipients
 
Method Summary
 void addRecipients(java.util.Set<java.lang.String> recipSet)
          Adds the specified set of recipients to this instance
 void addRecipients(java.lang.String recipCSV)
          Adds the specified comma-separated list of recipients to this instance
static java.lang.String extractEmailRecipients(java.lang.String recipCSV)
          Extracts and returns all email recipients in the specified comma-separated recipient list
static java.lang.String extractSmsRecipients(java.lang.String recipCSV)
          Extracts and returns all SMS recipients in the specified comma-separated recipient list
 java.util.Set<java.lang.String> getEmailRecipients()
          Returns the set of email recipients (null if no email recipients specified)
 java.lang.String getEmailRecipientsString()
          Returns the comma-separated String of email recipients
 java.util.Set<java.lang.String> getSmsRecipients()
          Returns the set of SMS recipients (null if no SMS recipients specified)
 java.lang.String getSmsRecipientsString()
          Returns the comma-separated String of SMS recipients
 boolean hasEmailRecipients()
          Returns true if this instance defined at least one email address
 boolean hasRecipients()
          Returns true if this instance defines at least one recipient
 boolean hasSmsRecipients()
          Returns true if this instance defined at least one sms number
static void main(java.lang.String[] argv)
           
 java.lang.String toString()
          Returns a String representation of this instance (debug only)
 boolean validateEmailRecipients()
          Validates contained email addresses
 boolean validateSmsRecipients()
          Validates contained SMS phone numbers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipients

public Recipients()
Constructor: Empty list of recipients


Recipients

public Recipients(java.util.Set<java.lang.String> recipSet)
Constructor: Set containing a list of EMail/SMS recipients


Recipients

public Recipients(java.lang.String recipCSV)
Constructor: String containing a comma-separated list of EMail/SMS recipients

Method Detail

extractEmailRecipients

public static java.lang.String extractEmailRecipients(java.lang.String recipCSV)
Extracts and returns all email recipients in the specified comma-separated recipient list


extractSmsRecipients

public static java.lang.String extractSmsRecipients(java.lang.String recipCSV)
Extracts and returns all SMS recipients in the specified comma-separated recipient list


addRecipients

public void addRecipients(java.lang.String recipCSV)
Adds the specified comma-separated list of recipients to this instance


addRecipients

public void addRecipients(java.util.Set<java.lang.String> recipSet)
Adds the specified set of recipients to this instance


getEmailRecipients

public java.util.Set<java.lang.String> getEmailRecipients()
Returns the set of email recipients (null if no email recipients specified)


getEmailRecipientsString

public java.lang.String getEmailRecipientsString()
Returns the comma-separated String of email recipients


hasEmailRecipients

public boolean hasEmailRecipients()
Returns true if this instance defined at least one email address


validateEmailRecipients

public boolean validateEmailRecipients()
Validates contained email addresses


getSmsRecipients

public java.util.Set<java.lang.String> getSmsRecipients()
Returns the set of SMS recipients (null if no SMS recipients specified)


getSmsRecipientsString

public java.lang.String getSmsRecipientsString()
Returns the comma-separated String of SMS recipients


hasSmsRecipients

public boolean hasSmsRecipients()
Returns true if this instance defined at least one sms number


validateSmsRecipients

public boolean validateSmsRecipients()
Validates contained SMS phone numbers


hasRecipients

public boolean hasRecipients()
Returns true if this instance defines at least one recipient


toString

public java.lang.String toString()
Returns a String representation of this instance (debug only)

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] argv)