Returns {@code com.google.appengine.api.datastore.Email} value as string
representation.
327049
@Override
    protected String convertToString(Object value) throws Throwable {
		Email email = (Email) value;
		return email.getEmail();
    }
387413
public Email to(EmailAddress... to) {
		for (EmailAddress t : to) {
			recipient(t, RecipientType.TO);
		}
		return this;
	}
1262148
@Override
    protected String convertToString(Object value) throws Throwable {
		PostalAddress address = (PostalAddress) value;
		return address.getAddress();
    }
260736
private boolean isEmailPropertiesSet() {
        return properties != null &&
                properties.containsKey(EMAIL_HOST) &&
                properties.containsKey(EMAIL_PORT) &&
                properties.containsKey(EMAIL_USERNAME) &&
                properties.containsKey(EMAIL_PASSWORD) &&
                properties.containsKey(EMAIL_FROM) &&
                properties.containsKey(EMAIL_TO);
    }
1313918
public String toQueryString() {
		final StringBuffer buf = new StringBuffer();
		final Object value1 = this.values.get(0);
		buf.append(this.column.getName());
		switch (this.type) {
		case STARTS_WIDTH:
			buf.append(" like '" + value1 + "%'");
			break;
		case CONTAINS:
			buf.append(" like '%" + value1 + "%'");
			break;
		case ENDS_WITH:
			buf.append(" like '%" + value1 + "'");
			break;
		case DOESNOT_CONTAINS:
			buf.append(" not like '%" + value1 + "%'");
			break;
		case MORE_THAN:
			buf.append(" > '" + value1 + "'");
			break;
		case LESS_THAN:
			buf.append(" < '" + value1 + "'");
			break;
		}
		return buf.toString();
	}
1363243
@Nullable
    public OAuthConnection parse(String email) {
        String domain = extractDomain(email);
        if (domain == null) {
            return null;
        }

        domain = domain.toLowerCase();
        for (OAuthConnection c : connections) {
            String mainDomain = domainForConnection(c);
            if (domain.equalsIgnoreCase(mainDomain)) {
                return c;
            }

            List<String> aliases = c.valueForKey(DOMAIN_ALIASES_KEY, List.class);
            if (aliases != null) {
                for (String d : aliases) {
                    if (d.equalsIgnoreCase(domain)) {
                        return c;
                    }
                }
            }
        }
        return null;
    }
984710
public Map<String,Object> getEMailParams(String strMessage)
    {
        Map<String,Object> properties = new Hashtable<String,Object>();
        int iIndex = this.getStartNextPropertyKey(-1, strMessage);
        while (iIndex != -1)
        {
            int iIndexEnd = strMessage.indexOf(END_OF_KEY_CHAR, iIndex);
            if (iIndexEnd == -1)
                break;
            String strKey = strMessage.substring(iIndex, iIndexEnd);
            if (strKey.indexOf(' ') != -1)
                strKey = strKey.substring(strKey.lastIndexOf(' ') + 1);
            iIndex = this.getStartNextPropertyKey(iIndexEnd + 1, strMessage);
            if (iIndex >= iIndexEnd)
            {
                for (iIndexEnd = iIndexEnd + 1; iIndexEnd < iIndex; iIndexEnd++)
                {
                    char chChar = strMessage.charAt(iIndexEnd);
                    if (!this.isLeadingWhitespace(chChar))
                        break;  // Start of value
                }
                if (iIndex == -1)
                    break;
                for (int i = iIndex - 1; i >= iIndexEnd; i--)
                {
                    char chChar = strMessage.charAt(i);
                    if (!this.isLeadingWhitespace(chChar))
                    {
                        String strValue = strMessage.substring(iIndexEnd, i + 1);
                        this.putProperty(properties, strKey, strValue);
                        break;
                    }
                }
            }
        }
        return properties;
    }
701689
public String getString (int index) {
        Object object = getObject (index);
        try {
            return (String) object;
        } catch (ClassCastException exception) {
            log.warn ("Cannot cast value type (" + object.getClass ().getName () + ") to String for index (" + index + ")");
        }
        return null;
    }
463986
public OvhEmailAvailability localSeo_emailAvailability_GET(String email) throws IOException {
		String qPath = "/hosting/web/localSeo/emailAvailability";
		StringBuilder sb = path(qPath);
		query(sb, "email", email);
		String resp = execN(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhEmailAvailability.class);
	}
36507
public Iterable<DContact> queryByEmail(Object parent, java.lang.String email) {
    return queryByField(parent, DContactMapper.Field.EMAIL.getFieldName(), email);
  }
141169
public MailBuilder to(String name, String email) {
        return param("to", email(name, email));
    }
1359520
private static String stringValue(Object attributeValue) {

        if (attributeValue == null) {
            return (null);
        } else if (attributeValue instanceof String) {
            return ((String) attributeValue);
        } else {
            return (attributeValue.toString());
        }

    }
864898
public String getString(String key) {

    Object obj = get(key);

    try {
      return (String) obj;
    } catch (Exception e) {
      throw new ClassCastException("Identified object is not a String.");
    }
  }
926159
public static Email emlToEmail(@Nonnull final String eml) {
		final MimeMessage mimeMessage = emlToMimeMessage(checkNonEmptyArgument(eml, "eml"), createDummySession());
		return mimeMessageToEmail(mimeMessage);
	}
618266
public String getString(int index)
  {
    Object value = _values[index - 1];

    if (value != null) {
      return value.toString();
    }
    else {
      return null;
    }
  }
476760
private String getEmail(Server server) {
        Xpp3Dom configuration = (Xpp3Dom) server.getConfiguration();
        if (configuration != null) {
            Xpp3Dom emailNode = configuration.getChild("email");
            if (emailNode != null) {
                return emailNode.getValue();
            }
        }
        return null;
    }
505457
public String objectToString(T object) {
		StringBuilder sb = new StringBuilder(64);
		sb.append(object.getClass().getSimpleName());
		for (FieldType fieldType : fieldTypes) {
			sb.append(' ').append(fieldType.getColumnName()).append('=');
			try {
				sb.append(fieldType.extractJavaFieldValue(object));
			} catch (Exception e) {
				throw new IllegalStateException("Could not generate toString of field " + fieldType, e);
			}
		}
		return sb.toString();
	}