de.janrufmonitor.framework
Interface IPhonenumber


public interface IPhonenumber

This interface should be implemented by a phone number object. A phone number object should store a phone number in two different ways:

  1. As an complete number representation: 072657110
  2. As splitted number representation:
    internation area code: 49
    area code: 7265
    party number: 7110

Both representations at the same time are allowed and must be handled by the application.

Author:
Thilo Brandt

Method Summary
 String getAreaCode()
          Gets the local area code of the phone number object
 String getCallNumber()
          Gets the call number of the phone number object
 String getIntAreaCode()
          Gets the international area code of the phone number object
 String getTelephoneNumber()
          Gets the complete telephone number of the phone number object
 boolean isClired()
          Checks if the phone number object is marked as clired (CLIR).
 void setAreaCode(String areaCode)
          Sets the local area code of the phone number object
 void setCallNumber(String callNumber)
          Sets the call number attribute of the phone number object
 void setClired(boolean isClir)
          Sets the clired status of the phone number object
 void setIntAreaCode(String internationalAreaCode)
          Sets the international area code of the phone number object
 void setTelephoneNumber(String telephoneNumber)
          Sets the complete telephone number of the phone number object
 

Method Detail

setIntAreaCode

void setIntAreaCode(String internationalAreaCode)
Sets the international area code of the phone number object

Parameters:
internationalAreaCode - the international area code to be set.

setAreaCode

void setAreaCode(String areaCode)
Sets the local area code of the phone number object

Parameters:
areaCode - the local area code to be set.

setCallNumber

void setCallNumber(String callNumber)
Sets the call number attribute of the phone number object

Parameters:
callNumber - the call number value to be set.

setTelephoneNumber

void setTelephoneNumber(String telephoneNumber)
Sets the complete telephone number of the phone number object

Parameters:
telephoneNumber - The complete telephone number to be set.

getIntAreaCode

String getIntAreaCode()
Gets the international area code of the phone number object

Returns:
the international area code

getAreaCode

String getAreaCode()
Gets the local area code of the phone number object

Returns:
the the local area code

getCallNumber

String getCallNumber()
Gets the call number of the phone number object

Returns:
the call number

getTelephoneNumber

String getTelephoneNumber()
Gets the complete telephone number of the phone number object

Returns:
the complete telephone number

isClired

boolean isClired()
Checks if the phone number object is marked as clired (CLIR).

Returns:
true if phone number object is clired, false if not.

setClired

void setClired(boolean isClir)
Sets the clired status of the phone number object

Parameters:
isClir - true if phone number object is clired


Copyright © 2010 by Thilo Brandt. All Rights Reserved.