示例#1
0
            override public void writeExternal(ObjectOutput objectOutput)
            {
                objectOutput.writeBoolean(_hasNationalNumberPattern);
                if (_hasNationalNumberPattern)
                {
                    objectOutput.writeUTF(nationalNumberPattern_);
                }

                objectOutput.writeBoolean(_hasPossibleNumberPattern);
                if (_hasPossibleNumberPattern)
                {
                    objectOutput.writeUTF(possibleNumberPattern_);
                }

                objectOutput.writeBoolean(_hasExampleNumber);
                if (_hasExampleNumber)
                {
                    objectOutput.writeUTF(exampleNumber_);
                }
            }
示例#2
0
            override public void writeExternal(ObjectOutput objectOutput)
            {
                objectOutput.writeUTF(pattern_);
                objectOutput.writeUTF(format_);
                int _leadingDigitsPatternSize = leadingDigitsPatternSize();

                objectOutput.writeInt(_leadingDigitsPatternSize);
                for (int i = 0; i < _leadingDigitsPatternSize; i++)
                {
                    objectOutput.writeUTF(leadingDigitsPattern_.get(i));
                }

                objectOutput.writeBoolean(_hasNationalPrefixFormattingRule);
                if (_hasNationalPrefixFormattingRule)
                {
                    objectOutput.writeUTF(nationalPrefixFormattingRule_);
                }
                objectOutput.writeBoolean(_hasDomesticCarrierCodeFormattingRule);
                if (_hasDomesticCarrierCodeFormattingRule)
                {
                    objectOutput.writeUTF(domesticCarrierCodeFormattingRule_);
                }
                objectOutput.writeBoolean(nationalPrefixOptionalWhenFormatting_);
            }
示例#3
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_);
            }
示例#4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
        public override void WriteExternal(ObjectOutput @out)
        {
            @out.writeInt(_serverId);
            @out.writeLong(_latestTxId);
            @out.writeBoolean(_currentWinner);
        }
示例#5
0
 public void writeBoolean(bool __p1)
 {
     _javaObjectOutput.writeBoolean(__p1);
 }
示例#6
0
 /**
  * Supports Java Serialization.
  */
 public override void writeExternal(ObjectOutput objectOutput)
 {
     objectOutput.writeBoolean(areaCodeMapStorage is FlyweightMapStorage);
     areaCodeMapStorage.writeExternal(objectOutput);
 }
 /**
    * Supports Java Serialization.
    */
 public override void writeExternal(ObjectOutput objectOutput)
 {
     objectOutput.writeBoolean(areaCodeMapStorage is FlyweightMapStorage);
     areaCodeMapStorage.writeExternal(objectOutput);
 }
            public override void writeExternal(ObjectOutput objectOutput)
            {
                objectOutput.writeUTF(pattern_);
                  objectOutput.writeUTF(format_);
                  int _leadingDigitsPatternSize = leadingDigitsPatternSize();
                  objectOutput.writeInt(_leadingDigitsPatternSize);
                  for (int i = 0; i < _leadingDigitsPatternSize; i++) {
                objectOutput.writeUTF(leadingDigitsPattern_.get(i));
                  }

                  objectOutput.writeBoolean(_hasNationalPrefixFormattingRule);
                  if (_hasNationalPrefixFormattingRule) {
                objectOutput.writeUTF(nationalPrefixFormattingRule_);
                  }
                  objectOutput.writeBoolean(_hasDomesticCarrierCodeFormattingRule);
                  if (_hasDomesticCarrierCodeFormattingRule) {
                objectOutput.writeUTF(domesticCarrierCodeFormattingRule_);
                  }
                  objectOutput.writeBoolean(nationalPrefixOptionalWhenFormatting_);
            }
            public override void writeExternal(ObjectOutput objectOutput)
            {
                objectOutput.writeBoolean(_hasNationalNumberPattern);
                  if (_hasNationalNumberPattern) {
                objectOutput.writeUTF(nationalNumberPattern_);
                  }

                  objectOutput.writeBoolean(_hasPossibleNumberPattern);
                  if (_hasPossibleNumberPattern) {
                objectOutput.writeUTF(possibleNumberPattern_);
                  }

                  objectOutput.writeBoolean(_hasExampleNumber);
                  if (_hasExampleNumber) {
                objectOutput.writeUTF(exampleNumber_);
                  }
            }
            public override 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_);
            }