Class EntityAttrPhone
java.lang.Object
ru.bgcrm.plugin.bgbilling.proto.model.entity.EntityAttr
ru.bgcrm.plugin.bgbilling.proto.model.entity.EntityAttrPhone
Attribute/parameter - phones. To get the phone list, use the
getContactList(), toPhoneList(), toUnformattedPhoneList() methods-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContact - phone + comment -
Field Summary
Fields inherited from class EntityAttr
MODE_EQ, MODE_LIKE, MODE_REGEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityAttrPhone(int entityId, int entitySpecAttrId) EntityAttrPhone(int entityId, int entitySpecAttrId, String phone, String comment) -
Method Summary
Modifier and TypeMethodDescriptionaddContact(String phone, String comment) Adds a phone (contact)getData()static StringphoneUnformatted(String phone) Converts a formatted phone number into a set of digitsvoidsetContactList(List<EntityAttrPhone.PhoneContact> phoneList) voidFor internal use.toString()Methods inherited from class EntityAttr
getEntityId, getEntitySpecAttrId, setEntityId, setEntitySpecAttrId
-
Constructor Details
-
EntityAttrPhone
protected EntityAttrPhone() -
EntityAttrPhone
public EntityAttrPhone(int entityId, int entitySpecAttrId) - Parameters:
entityId- the contract/object/entity IDentitySpecAttrId- the parameter/attribute type ID
-
EntityAttrPhone
-
-
Method Details
-
getContactList
- Returns:
- the contact list
-
setContactList
- Parameters:
phoneList- the contact list
-
addContact
Adds a phone (contact)- Parameters:
phone- the phone numbercomment- the comment- Returns:
- this
-
getData
-
setData
For internal use. To add a phone, useaddContact(String, String)orsetContactList(List)- Parameters:
data- the raw data
-
toString
-
toPhoneList
-
toUnformattedPhoneList
-
phoneUnformatted
-