18 package org.turro.vcard.properties;
20 import java.util.ArrayList;
21 import java.util.List;
22 import org.turro.vcard.VCard;
32 private List<String> types =
new ArrayList<String>();
36 int p = l.indexOf(
":");
37 if(p == -1)
return null;
42 property.setValue(l.substring(p + 1));
48 this(tag, vcard,
null);
62 String v[] = value.split(
";");
63 return v.length <= index ?
"" : v[index];
67 return value.split(
";");
76 for(String v : values) {
100 sb.append(
":" + value +
"\n");
void setValues(String[] values)
static Property getInstance(VCard vcard, PropertyTag tag, String l)
List< String > getTypes()
void setValue(String value)
Property(PropertyTag tag, VCard vcard)
void renderProperty(StringBuilder sb)
void addType(String type)
Property(PropertyTag tag, VCard vcard, String value)
String getValue(int index)
void renderTypes(StringBuilder sb, List< String > types)
void readTypes(String s, List< String > types)