public static int getAttributeCode(String label, int defaultValue)(Code)
Lookup the attribute identifier.
Parameters: label - the name of the attribute Parameters: defaultValue - default value to return ifthe attribute identifier is not found identifier for requested attribute
getAttributeLabel
public static String getAttributeLabel(int attr)(Code)
Lookup the attribute name from identifier.
Parameters: attr - the field identifier the name of the attribute
Gets the value of the Contact.CLASS field for the given
value of the vCard CLASS property.
This method encapsulates the following mapping:
Contact.CLASS_PUBLIC <- "PUBLIC"
Contact.CLASS_PRIVATE <- "PRIVATE"
Contact.CLASS_CONFIDENTIAL <- "CONFIDENTIAL"
Parameters: s - the value of the CLASS property the corresponding field of Contact, or -1 if s is not recognized
getClassType
public static String getClassType(int fieldValue)(Code)
Gets the value of the vCard CLASS field for the given
value of the Contact.CLASS field.
This method encapsulates the following mapping:
Contact.CLASS_PUBLIC -> "PUBLIC"
Contact.CLASS_PRIVATE -> "PRIVATE"
Contact.CLASS_CONFIDENTIAL -> "CONFIDENTIAL"
Parameters: fieldValue - the value of the Contact.CLASS field a string describing the class for the field value, or null iffieldValue is out of range
getFieldCode
public static int getFieldCode(String fieldName)(Code)
Lookup the field identifier byte name.
Parameters: fieldName - label for field identifier for requested field
getFieldLabel
public static String getFieldLabel(int field)(Code)
Gets the field label.
Parameters: field - identifier for field label of requested field