Class MobilePhone
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.MobilePhone
-
- All Implemented Interfaces:
ISelfValidate
public final class MobilePhone extends Object implements ISelfValidate
Represents a mobile phone.
-
-
Constructor Summary
Constructors Constructor Description MobilePhone()Initializes a new instance of theMobilePhoneclass.MobilePhone(String name, String phoneNumber)Initializes a new instance of the MobilePhone class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets or sets the name associated with this mobile phone.StringgetPhoneNumber()Gets or sets the number of this mobile phone.voidsetName(String value)voidsetPhoneNumber(String value)voidvalidate()Validates this instance.
-
-
-
Constructor Detail
-
MobilePhone
public MobilePhone()
Initializes a new instance of theMobilePhoneclass.
-
MobilePhone
public MobilePhone(String name, String phoneNumber)
Initializes a new instance of the MobilePhone class.- Parameters:
name- The name associated with the mobile phone.phoneNumber- The mobile phone number.
-
-
Method Detail
-
getPhoneNumber
public String getPhoneNumber()
Gets or sets the number of this mobile phone.
-
setPhoneNumber
public void setPhoneNumber(String value)
-
validate
public void validate() throws ServiceValidationException
Validates this instance.- Specified by:
validatein interfaceISelfValidate- Throws:
ServiceValidationException- on validation error
-
-