public static String parseMmsAddress(String address){
  if (isEmailAddress(address)) {
    return address;
  }
  String retVal=parsePhoneNumberForMms(address);
  if (retVal != null && retVal.length() != 0) {
    return retVal;
  }
  if (isAlias(address)) {
    return address;
  }
  return null;
}

public static String parseMmsAddress ( String address ) { if ( isEmailAddress ( address ) ) { return address ; } String retVal = parsePhoneNumberForMms ( address ) ; if ( retVal != null && retVal . length ( ) != 0 ) { return retVal ; } if ( isAlias ( address ) ) { return address ; } return null ; }
parse the input address to be a valid mms address . - if the address is an email address , leave it as is . - if the address can be parsed into a valid mms phone number , return the parsed number . - if the address is a compliant alias address , leave it as is .
