Пример #1
0
            override public void writeExternal(ObjectOutput objectOutput)
            {
                objectOutput.writeBoolean(_hasGeneralDesc);
                if (_hasGeneralDesc)
                {
                    generalDesc_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasFixedLine);
                if (_hasFixedLine)
                {
                    fixedLine_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasMobile);
                if (_hasMobile)
                {
                    mobile_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasTollFree);
                if (_hasTollFree)
                {
                    tollFree_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasPremiumRate);
                if (_hasPremiumRate)
                {
                    premiumRate_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasSharedCost);
                if (_hasSharedCost)
                {
                    sharedCost_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasPersonalNumber);
                if (_hasPersonalNumber)
                {
                    personalNumber_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasVoip);
                if (_hasVoip)
                {
                    voip_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasPager);
                if (_hasPager)
                {
                    pager_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasUan);
                if (_hasUan)
                {
                    uan_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasEmergency);
                if (_hasEmergency)
                {
                    emergency_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasVoicemail);
                if (_hasVoicemail)
                {
                    voicemail_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasShortCode);
                if (_hasShortCode)
                {
                    shortCode_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasStandardRate);
                if (_hasStandardRate)
                {
                    standardRate_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasCarrierSpecific);
                if (_hasCarrierSpecific)
                {
                    carrierSpecific_.writeExternal(objectOutput);
                }
                objectOutput.writeBoolean(_hasNoInternationalDialling);
                if (_hasNoInternationalDialling)
                {
                    noInternationalDialling_.writeExternal(objectOutput);
                }

                objectOutput.writeUTF(id_);
                objectOutput.writeInt(countryCode_);
                objectOutput.writeUTF(internationalPrefix_);

                objectOutput.writeBoolean(_hasPreferredInternationalPrefix);
                if (_hasPreferredInternationalPrefix)
                {
                    objectOutput.writeUTF(preferredInternationalPrefix_);
                }

                objectOutput.writeBoolean(_hasNationalPrefix);
                if (_hasNationalPrefix)
                {
                    objectOutput.writeUTF(nationalPrefix_);
                }

                objectOutput.writeBoolean(_hasPreferredExtnPrefix);
                if (_hasPreferredExtnPrefix)
                {
                    objectOutput.writeUTF(preferredExtnPrefix_);
                }

                objectOutput.writeBoolean(_hasNationalPrefixForParsing);
                if (_hasNationalPrefixForParsing)
                {
                    objectOutput.writeUTF(nationalPrefixForParsing_);
                }

                objectOutput.writeBoolean(_hasNationalPrefixTransformRule);
                if (_hasNationalPrefixTransformRule)
                {
                    objectOutput.writeUTF(nationalPrefixTransformRule_);
                }

                objectOutput.writeBoolean(sameMobileAndFixedLinePattern_);

                int _numberFormatSize = numberFormatSize();

                objectOutput.writeInt(_numberFormatSize);
                for (int i = 0; i < _numberFormatSize; i++)
                {
                    numberFormat_.get(i).writeExternal(objectOutput);
                }

                int _intlNumberFormatSize = intlNumberFormatSize();

                objectOutput.writeInt(_intlNumberFormatSize);
                for (int i = 0; i < _intlNumberFormatSize; i++)
                {
                    intlNumberFormat_.get(i).writeExternal(objectOutput);
                }

                objectOutput.writeBoolean(mainCountryForCode_);

                objectOutput.writeBoolean(_hasLeadingDigits);
                if (_hasLeadingDigits)
                {
                    objectOutput.writeUTF(leadingDigits_);
                }

                objectOutput.writeBoolean(leadingZeroPossible_);
            }