[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

HasPhoneNumber

mixes in with Object
mixes in with EditAttributeClient
inherits from HasCountryCode

HasCountryCode <- HasPhoneNumber



Operations

Get list of all operations

AcceptEdit
AcceptPhoneNumber
BeginEdit


Attributes

Get list of all attributes

AllowInvalidPhoneNumbers
CountryCode
DialingCountry
DomesticNumber
PhoneNumber


Fields

Field Type
HasPhoneNumber: phoneNumber: Text


Instance template

Class HasPhoneNumber cannot be instantiated.


Class definition

Define Class HasPhoneNumber;
    mixes in with Object, EditAttributeClient;
    inherits from HasCountryCode;
    
    field phoneNumber: Text, getter, setter;

    attribute PhoneNumber: Text;
        // returns the global phone number that is stored in the phoneNumber field
        // override raraly if you need to get the phone number from a different object

    attribute CountryCode: Text;
        // getter is overridden to get country code from dialing country
        // setter calls SetCountryCode on dialing country
    attribute DomesticNumber: Text;
        // access the domestic portion of phoneNumber

    attribute DialingCountry: DialingCountry;
        // gets the dialing country from the country code
    
    intrinsic AcceptPhoneNumber(editor: Viewable; otherEditor: Viewable; attributeNumber: OperationNumber): Boolean;
        // called by HasPhoneNumber_AcceptEdit and TelephoneAddressInfo_AcceptEdit
        // The two routines are identical, using this intrinsic makes it easier
        // to maintain the code without causing differences.

    overrides AcceptEdit;
        // to reject invalid phone numbers
    overrides BeginEdit;
        // to suggest appropriate phone number beginnings

    attribute AllowInvalidPhoneNumbers: Boolean, readOnly;
        // override to return true if invalid phone numbers are no problem

end class;