1/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16package com.android.vcard.tests.testutils;
17
18import android.content.ContentValues;
19import android.provider.ContactsContract.Data;
20
21import java.util.ArrayList;
22import java.util.List;
23
24/**
25 * <p>
26 * The class representing one contact, which should contain multiple ContentValues like
27 * StructuredName, Email, etc.
28 * </p>
29 */
30public final class ContactEntry {
31    private final List<ContentValues> mContentValuesList = new ArrayList<ContentValues>();
32
33    public ContentValuesBuilder addContentValues(String mimeType) {
34        ContentValues contentValues = new ContentValues();
35        contentValues.put(Data.MIMETYPE, mimeType);
36        mContentValuesList.add(contentValues);
37        return new ContentValuesBuilder(contentValues);
38    }
39
40    public List<ContentValues> getList() {
41        return mContentValuesList;
42    }
43}