blob: 6c3e59b733a429f7f9cf5e6a86aee6f4669cc772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright 2007 The Android Open Source Project
package com.google.wireless.gdata2.contacts.data;
import com.google.wireless.gdata2.data.StringUtils;
/**
* Describes websites associated with the contact, including links.
* May be repeated.
*/
public class WebSite extends ContactsElement {
/** The phone number type. */
public static final byte TYPE_HOMEPAGE = 1;
public static final byte TYPE_BLOG = 2;
public static final byte TYPE_PROFILE = 3;
public static final byte TYPE_HOME = 4;
public static final byte TYPE_WORK = 5;
public static final byte TYPE_OTHER = 6;
public static final byte TYPE_FTP = 7;
private String href;
/**
* default empty constructor
*/
public WebSite() {}
public WebSite(String href, byte type, String label, boolean isPrimary) {
super(type, label, isPrimary);
this.href = href;
}
/**
* The URL of the website.
*/
public String getHRef() {
return this.href;
}
/**
* The URL of the website.
*/
public void setHRef(String href) {
this.href = href;
}
public void toString(StringBuffer sb) {
sb.append("WebSite");
super.toString(sb);
if (!StringUtils.isEmpty(href)) {
sb.append(" href:").append(href);
}
}
}
|