public final class MobilePhone extends Object implements ISelfValidate
Constructor and Description |
---|
MobilePhone()
Initializes a new instance of the
|
MobilePhone(String name,
String phoneNumber)
Initializes a new instance of the MobilePhone class.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets or sets the name associated with this mobile phone.
|
String |
getPhoneNumber()
Gets or sets the number of this mobile phone.
|
void |
setName(String value) |
void |
setPhoneNumber(String value) |
void |
validate()
Validates this instance.
|
public MobilePhone()
public MobilePhone(String name, String phoneNumber)
name
- The name associated with the mobile phone.phoneNumber
- The mobile phone number.public String getPhoneNumber()
public void setPhoneNumber(String value)
public void validate() throws ServiceValidationException
validate
in interface ISelfValidate
ServiceValidationException
- on validation errorCopyright © 2012–2015 Microsoft. All rights reserved.