Loading javasrc/com/testingtech/generated/codec/LibIpv6_Interface_TypesAndValues/TabularMipOptAltCoa.java 0 → 100644 +141 −0 Original line number Original line Diff line number Diff line /* * NOTE: this is a machine generated file - editing not recommended * ---------------------------------------------------------------------------- * (C) Copyright Testing Technologies, 2000-2007. All Rights Reserved. * * All copies of this program, whether in whole or in part, and whether * modified or not, must display this and all other embedded copyright * and ownership notices in full. * * See the file COPYRIGHT and LICENSE for details of redistribution * and use. * * You should have received a copy of the COPYRIGHT and LICENSE file * along with this file; if not, write to the Testing Technologies, * Rosenthaler Str. 13, 10119 Berlin, Germany. * * ---------------------------------------------------------------------------- * * Source File: D:\\dte\\workspaces\\workspace_ipv6\\IPv6_ETSI_STF276_P2_new\\ttcn3\\EtsiLibrary\\LibIpv6\\LibCommonRfcs\\LibIpv6_Interface_TypesAndValues.ttcn * File : TabularMipOptAltCoA.java * * This is a Java class providing a com.testingtech.ttcn.tci based decoding * using tabular encoding information within a TTCN-3 file. * * This file was generated by TabularCodecGenerator(version v1.0) * at 21.05.2007 21:40:07 * * REVISION INFO: * $Revision: 1.4 $ $Date: 2007/02/26 10:03:23 $ * ----------------------------------------------------------------------------- */ package com.testingtech.generated.codec.LibIpv6_Interface_TypesAndValues; import com.testingtech.ttcn.tci.codec.tabular.*; import org.etsi.ttcn.tci.RecordValue; import org.etsi.ttcn.tci.Value; public class TabularMipOptAltCoa extends TabularRecord { public RecordValue rv; public com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8 mobileOptType; public com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8 mobileOptLen; public com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16 alternateCoa; public TabularMipOptAltCoa(Value theValue) { super(theValue); present = false; rv = (RecordValue) tciValue; /* */ } public TabularObject decode(final TabularDecoder dec) throws TabularException { present = isNext(dec); if (!present) { return null; } // -- mobileOptType if (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8.isNext( dec)) { mobileOptType = (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8) new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptType")); mobileOptType.decode(dec); } else { throw new TabularException( "Mandatory field 'mobileOptType' of 'MipOptAltCoA' missing"); } // -- mobileOptLen if (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8.isNext( dec)) { mobileOptLen = (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8) new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptLen")); mobileOptLen.decode(dec); } else { throw new TabularException( "Mandatory field 'mobileOptLen' of 'MipOptAltCoA' missing"); } // -- alternateCoA if (com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16.isNext( dec)) { alternateCoa = (com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16) new com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16(rv.getField( "alternateCoa")); alternateCoa.decode(dec); } else { throw new TabularException( "Mandatory field 'alternateCoA' of 'MipOptAltCoA' missing"); } return this; } public TabularObject decode(TabularDecoder dec, int proceedingByteNumber) throws TabularException { throw new TabularException( "method decode(TabularDecoder dec, int proceedingByteNumber) not implemented by default"); } public void encode(final TabularEncoder enc) throws TabularException { // -- mobileOptType mobileOptType = new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptType")); mobileOptType.encode(enc); // -- mobileOptLen mobileOptLen = new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptLen")); mobileOptLen.encode(enc); // -- alternateCoA alternateCoa = new com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16(rv.getField( "alternateCoa")); alternateCoa.encode(enc); return; } public void encode(TabularEncoder enc, int proceedingByteNumber) throws TabularException { throw new TabularException( "method encode(TabularEncoder enc, int proceedingByteNumber) not implemented by default"); } public static boolean isNext(TabularDecoder dec) throws TabularException { return dec.bytes(0, 1, 3); } public Value toValue() { safeFieldSet(rv, "mobileOptType", mobileOptType); safeFieldSet(rv, "mobileOptLen", mobileOptLen); safeFieldSet(rv, "alternateCoa", alternateCoa); return rv; } } Loading
javasrc/com/testingtech/generated/codec/LibIpv6_Interface_TypesAndValues/TabularMipOptAltCoa.java 0 → 100644 +141 −0 Original line number Original line Diff line number Diff line /* * NOTE: this is a machine generated file - editing not recommended * ---------------------------------------------------------------------------- * (C) Copyright Testing Technologies, 2000-2007. All Rights Reserved. * * All copies of this program, whether in whole or in part, and whether * modified or not, must display this and all other embedded copyright * and ownership notices in full. * * See the file COPYRIGHT and LICENSE for details of redistribution * and use. * * You should have received a copy of the COPYRIGHT and LICENSE file * along with this file; if not, write to the Testing Technologies, * Rosenthaler Str. 13, 10119 Berlin, Germany. * * ---------------------------------------------------------------------------- * * Source File: D:\\dte\\workspaces\\workspace_ipv6\\IPv6_ETSI_STF276_P2_new\\ttcn3\\EtsiLibrary\\LibIpv6\\LibCommonRfcs\\LibIpv6_Interface_TypesAndValues.ttcn * File : TabularMipOptAltCoA.java * * This is a Java class providing a com.testingtech.ttcn.tci based decoding * using tabular encoding information within a TTCN-3 file. * * This file was generated by TabularCodecGenerator(version v1.0) * at 21.05.2007 21:40:07 * * REVISION INFO: * $Revision: 1.4 $ $Date: 2007/02/26 10:03:23 $ * ----------------------------------------------------------------------------- */ package com.testingtech.generated.codec.LibIpv6_Interface_TypesAndValues; import com.testingtech.ttcn.tci.codec.tabular.*; import org.etsi.ttcn.tci.RecordValue; import org.etsi.ttcn.tci.Value; public class TabularMipOptAltCoa extends TabularRecord { public RecordValue rv; public com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8 mobileOptType; public com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8 mobileOptLen; public com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16 alternateCoa; public TabularMipOptAltCoa(Value theValue) { super(theValue); present = false; rv = (RecordValue) tciValue; /* */ } public TabularObject decode(final TabularDecoder dec) throws TabularException { present = isNext(dec); if (!present) { return null; } // -- mobileOptType if (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8.isNext( dec)) { mobileOptType = (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8) new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptType")); mobileOptType.decode(dec); } else { throw new TabularException( "Mandatory field 'mobileOptType' of 'MipOptAltCoA' missing"); } // -- mobileOptLen if (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8.isNext( dec)) { mobileOptLen = (com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8) new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptLen")); mobileOptLen.decode(dec); } else { throw new TabularException( "Mandatory field 'mobileOptLen' of 'MipOptAltCoA' missing"); } // -- alternateCoA if (com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16.isNext( dec)) { alternateCoa = (com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16) new com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16(rv.getField( "alternateCoa")); alternateCoa.decode(dec); } else { throw new TabularException( "Mandatory field 'alternateCoA' of 'MipOptAltCoA' missing"); } return this; } public TabularObject decode(TabularDecoder dec, int proceedingByteNumber) throws TabularException { throw new TabularException( "method decode(TabularDecoder dec, int proceedingByteNumber) not implemented by default"); } public void encode(final TabularEncoder enc) throws TabularException { // -- mobileOptType mobileOptType = new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptType")); mobileOptType.encode(enc); // -- mobileOptLen mobileOptLen = new com.testingtech.generated.codec.LibCommon_BasicTypesAndValues.TabularUInt8(rv.getField( "mobileOptLen")); mobileOptLen.encode(enc); // -- alternateCoA alternateCoa = new com.testingtech.generated.codec.LibCommon_DataStrings.TabularOct16(rv.getField( "alternateCoa")); alternateCoa.encode(enc); return; } public void encode(TabularEncoder enc, int proceedingByteNumber) throws TabularException { throw new TabularException( "method encode(TabularEncoder enc, int proceedingByteNumber) not implemented by default"); } public static boolean isNext(TabularDecoder dec) throws TabularException { return dec.bytes(0, 1, 3); } public Value toValue() { safeFieldSet(rv, "mobileOptType", mobileOptType); safeFieldSet(rv, "mobileOptLen", mobileOptLen); safeFieldSet(rv, "alternateCoa", alternateCoa); return rv; } }