ca.infoway.messagebuilder.util.telephone
Class Telephone

Package class diagram package Telephone
java.lang.Object
  extended by ca.infoway.messagebuilder.util.telephone.Telephone

public class Telephone
extends Object

A utility for working with telephones.

Author:
Intelliware Development

Constructor Summary
Telephone()
          Default constructor.
Telephone(String areaCode, TelephoneLocalNumber phoneNumber)
          Standard constructor.
 
Method Summary
 String getAreaCode()
          Get the area code.
 String getExtension()
          Get the extension.
 String getHl7FormattedPhoneNumber()
          Create a formatted version of the phone number, rendered in an HL7-compliant way.
 TelephoneLocalNumber getPhoneNumber()
          Get the phone number.
 void setAreaCode(String areaCode)
          Set the area code.
 void setExtension(String extension)
          Set the extension.
 void setPhoneNumber(TelephoneLocalNumber phoneNumber)
          Set the phone number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Telephone

public Telephone()

Default constructor.


Telephone

public Telephone(String areaCode,
                 TelephoneLocalNumber phoneNumber)

Standard constructor.

Parameters:
areaCode - - the area code
phoneNumber - - the phone number
Method Detail

getAreaCode

public String getAreaCode()

Get the area code.

Returns:
- the area code.

setAreaCode

public void setAreaCode(String areaCode)

Set the area code.

Parameters:
areaCode - - the new value

getExtension

public String getExtension()

Get the extension.

Returns:
- the extension.

setExtension

public void setExtension(String extension)

Set the extension.

Parameters:
extension - - the new value

getPhoneNumber

public TelephoneLocalNumber getPhoneNumber()

Get the phone number.

Returns:
- the phone number

setPhoneNumber

public void setPhoneNumber(TelephoneLocalNumber phoneNumber)

Set the phone number.

Parameters:
phoneNumber - - the new value.

getHl7FormattedPhoneNumber

public String getHl7FormattedPhoneNumber()

Create a formatted version of the phone number, rendered in an HL7-compliant way.

Returns:
- the formatted phone number


Copyright © 2013. All Rights Reserved.