- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 41 of file MyDataList.java.
◆ MyDataList()
org.turro.contacts.mydata.MyDataList.MyDataList |
( |
IContact |
contact | ) |
|
◆ isValid()
boolean org.turro.contacts.mydata.MyDataList.isValid |
( |
| ) |
|
Definition at line 50 of file MyDataList.java.
51 for(MyDataItem item :
this) {
52 if(item.isRequired()) {
53 if(item.getType().equals(MyDataItemType.MYDATA_NAME)) {
54 if(Strings.isBlank(contact.
getName()))
return false;
55 }
else if(item.getType().equals(MyDataItemType.MYDATA_GIF)) {
56 if(Strings.isBlank(contact.
getGlobalId()))
return false;
57 }
else if(item.getType().equals(MyDataItemType.MYDATA_CONNECTOR)) {
58 if(Strings.isBlank(contact.
getConnector(item.getName())))
return false;
◆ saveItems()
void org.turro.contacts.mydata.MyDataList.saveItems |
( |
| ) |
|
Definition at line 65 of file MyDataList.java.
67 for(MyDataItem item :
this) {
68 if(!Strings.isBlank(item.getValue())) {
69 if(item.getType().equals(MyDataItemType.MYDATA_NAME)) {
70 contact.
setName(item.getValue());
71 }
else if(item.getType().equals(MyDataItemType.MYDATA_GIF)) {
73 }
else if(item.getType().equals(MyDataItemType.MYDATA_CONNECTOR)) {
75 }
else if(item.getType().equals(MyDataItemType.MYDATA_PASSWORD)) {
76 String password = item.getValue();
77 if(!Strings.isBlank(password)) {
The documentation for this class was generated from the following file: