1 // Copyright 2009 The Android Open Source Project 2 3 package com.google.wireless.gdata2.contacts.parser.xml; 4 5 /** 6 * Class to hold static strings that are used to parse and 7 * serialize the xml elements in the contacts feed 8 */ 9 public final class XmlNametable { XmlNametable()10 private XmlNametable() {} 11 12 // generic strings for attributes 13 public static String HREF = "href"; 14 public static String LABEL = "label"; 15 public static String VALUE = "value"; 16 public static String CODE = "code"; 17 public static String REL = "rel"; 18 public static String KEY = "key"; 19 public static String ETAG = "etag"; 20 public static String VALUESTRING = "valueString"; 21 public static String STARTTIME = "startTime"; 22 public static String PRIMARY = "primary"; 23 24 // GD namespace 25 public static String GD_EMAIL = "email"; 26 public static String GD_EMAIL_DISPLAYNAME = "displayName"; 27 public static String GD_ADDRESS = "address"; 28 public static String GD_PROTOCOL = "protocol"; 29 public static String GD_IM = "im"; 30 public static String GD_DELETED = "deleted"; 31 public static String GD_NAME = "name"; 32 public static String GD_NAME_GIVENNAME = "givenName"; 33 public static String GD_NAME_ADDITIONALNAME = "additionalName"; 34 public static String GD_NAME_YOMI = "yomi"; 35 public static String GD_NAME_FAMILYNAME = "familyName"; 36 public static String GD_NAME_PREFIX = "namePrefix"; 37 public static String GD_NAME_SUFFIX = "nameSuffix"; 38 public static String GD_NAME_FULLNAME = "fullName"; 39 public static String GD_SPA = "structuredPostalAddress"; 40 public static String GD_SPA_STREET = "street"; 41 public static String GD_SPA_POBOX = "pobox"; 42 public static String GD_SPA_NEIGHBORHOOD = "neighborhood"; 43 public static String GD_SPA_CITY = "city"; 44 public static String GD_SPA_REGION = "region"; 45 public static String GD_SPA_POSTCODE = "postcode"; 46 public static String GD_SPA_COUNTRY = "country"; 47 public static String GD_SPA_FORMATTEDADDRESS = "formattedAddress"; 48 public static String GD_PHONENUMBER = "phoneNumber"; 49 public static String GD_ORGANIZATION = "organization"; 50 public static String GD_EXTENDEDPROPERTY = "extendedProperty"; 51 public static String GD_WHEN = "when"; 52 public static String GD_WHERE = "where"; 53 public static String GD_ORG_NAME = "orgName"; 54 public static String GD_ORG_TITLE = "orgTitle"; 55 public static String GD_ORG_DEPARTMENT = "orgDepartment"; 56 public static String GD_ORG_JOBDESC = "orgJobDescription"; 57 public static String GD_ORG_SYMBOL = "orgSymbol"; 58 59 // Contacts namespace 60 public static String GC_GMI = "groupMembershipInfo"; 61 public static String GC_BIRTHDAY = "birthday"; 62 public static String GC_BILLINGINFO = "billingInformation"; 63 public static String GC_CALENDARLINK = "calendarLink"; 64 public static String GC_DIRECTORYSERVER = "directoryServer"; 65 public static String GC_EVENT = "event"; 66 public static String GC_EXTERNALID = "externalId"; 67 public static String GC_GENDER = "gender"; 68 public static String GC_HOBBY = "hobby"; 69 public static String GC_INITIALS = "initials"; 70 public static String GC_JOT = "jot"; 71 public static String GC_LANGUAGE = "language"; 72 public static String GC_MAIDENNAME = "maidenName"; 73 public static String GC_MILEAGE = "mileage"; 74 public static String GC_NICKNAME = "nickname"; 75 public static String GC_OCCUPATION = "occupation"; 76 public static String GC_PRIORITY = "priority"; 77 public static String GC_RELATION = "relation"; 78 public static String GC_SENSITIVITY = "sensitivity"; 79 public static String GC_SHORTNAME = "shortName"; 80 public static String GC_SUBJECT = "subject"; 81 public static String GC_UDF = "userDefinedField"; 82 public static String GC_WEBSITE ="website"; 83 }