java.lang.Object
org.refcodes.serial.SequenceSection
org.refcodes.serial.DynamicTypeSection
- All Implemented Interfaces:
Serializable,org.refcodes.mixin.AliasAccessor,org.refcodes.mixin.EncodingAccessor<Charset>,org.refcodes.mixin.LengthAccessor,org.refcodes.mixin.PayloadAccessor<Sequence>,org.refcodes.mixin.PayloadAccessor.PayloadBuilder<Sequence,,PayloadTransmission<Sequence>> org.refcodes.mixin.PayloadAccessor.PayloadMutator<Sequence>,org.refcodes.mixin.PayloadAccessor.PayloadProperty<Sequence>,org.refcodes.mixin.Resetable,org.refcodes.numerical.EndianessAccessor,org.refcodes.schema.Schemable,DynamicTypeTransmission,LengthWidthAccessor,PayloadSection<Sequence>,PayloadTransmission<Sequence>,Section,Section.SectionMixin,Transmission,Transmission.TransmissionMixin
public class DynamicTypeSection
extends SequenceSection
implements Section, LengthWidthAccessor, org.refcodes.numerical.EndianessAccessor, org.refcodes.mixin.EncodingAccessor<Charset>, DynamicTypeTransmission
The
DynamicTypeSection represents a Section which's internal
raw data is created from provided types at runtime and which's internal raw
data is used to create provided types at runtime. Therefore internally it
just consists of a Sequence which is created if necessary from a
provided type or from which a provided type is instantiated if necessary.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.EncodingAccessor
org.refcodes.mixin.EncodingAccessor.EncodingBuilder<E extends Object,B extends org.refcodes.mixin.EncodingAccessor.EncodingBuilder<E, B>>, org.refcodes.mixin.EncodingAccessor.EncodingMutator<E extends Object>, org.refcodes.mixin.EncodingAccessor.EncodingProperty<E extends Object> Nested classes/interfaces inherited from interface org.refcodes.numerical.EndianessAccessor
org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B extends org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B>>, org.refcodes.numerical.EndianessAccessor.EndianessMutator, org.refcodes.numerical.EndianessAccessor.EndianessPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthPropertyNested classes/interfaces inherited from interface org.refcodes.serial.LengthWidthAccessor
LengthWidthAccessor.LengthWidthBuilder<B extends LengthWidthAccessor.LengthWidthBuilder<B>>, LengthWidthAccessor.LengthWidthMutator, LengthWidthAccessor.LengthWidthPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.PayloadAccessor
org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P, B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends Object> Nested classes/interfaces inherited from interface org.refcodes.serial.Section
Section.SectionMixinNested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixin -
Field Summary
Fields inherited from class org.refcodes.serial.SequenceSection
_alias, _sequence -
Constructor Summary
ConstructorsConstructorDescriptionConstructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias, Charset aCharset) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias, T aValue) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias, T aValue, String... aAttributes) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(String aAlias, T aValue, Charset aCharset) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(String aAlias, T aValue, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(Charset aCharset) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(TransmissionMetrics aTransmissionMetrics) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(T aValue) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(T aValue, String... aAttributes) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).DynamicTypeSection(T aValue, Charset aCharset) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(T aValue, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS.DynamicTypeSection(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs theDynamicTypeSectionwith the given properties.DynamicTypeSection(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties. -
Method Summary
Modifier and TypeMethodDescription<T> voidfromType(T aValue) Constructs theDynamicTypeSection'sSequencefrom the given type's instance .<T> voidConstructs an instance for the given type T. .org.refcodes.numerical.EndianessintRetrieves the length width (in bytes) from the length width (in bytes) property.voidreset()Resets any dynamic data (e.g. values such as payloads or checksums) and must not(!)toSchema()org.refcodes.struct.SimpleTypeMapReturns theSimpleTypeMaprepresentation of thisTransmission.<T> TConstructs an instance for the given type T.<T> TConstructs an instance for the given type T. .Methods inherited from class org.refcodes.serial.SequenceSection
fromTransmission, getAlias, getLength, getPayload, setPayload, toSequence, withPayloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.mixin.PayloadAccessor
getPayloadOrMethods inherited from interface org.refcodes.mixin.PayloadAccessor.PayloadProperty
letPayloadMethods inherited from interface org.refcodes.serial.Section
fromTransmission, fromTransmission, fromTransmission, fromTransmission, receiveFrom, receiveFromMethods inherited from interface org.refcodes.serial.Section.SectionMixin
receiveFromMethods inherited from interface org.refcodes.serial.Transmission
getLength, toSequence, transmitTo, transmitToMethods inherited from interface org.refcodes.serial.Transmission.TransmissionMixin
transmitTo
-
Constructor Details
-
DynamicTypeSection
public DynamicTypeSection()Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING). -
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. -
DynamicTypeSection
public DynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.- Parameters:
aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.
-
DynamicTypeSection
public DynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties. -
DynamicTypeSection
Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING).- Parameters:
aAlias- The alias which identifies the content of this segment.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. -
DynamicTypeSection
public DynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING.- Parameters:
aAlias- The alias which identifies the content of this segment.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties. -
DynamicTypeSection
Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING). It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. It is pre-initialized with the given value as offromType(Object). -
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aCharset- TheCharsetto be used for encoding and decodingStringinstances.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING. It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aCharset- TheCharsetto be used for encoding and decodingStringinstances.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aCharset- TheCharsetto be used for encoding and decodingStringinstances.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING. It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING). It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object). The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.
-
DynamicTypeSection
public DynamicTypeSection(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object, String...). The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aAlias- The alias which identifies the content of this segment.aValue- The data structure's value.aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the given properties. The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aAlias- The alias which identifies the content of this segment.aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.
-
DynamicTypeSection
public DynamicTypeSection(T aValue) Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING). It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. It is pre-initialized with the given value as offromType(Object). -
DynamicTypeSection
Constructs theDynamicTypeSectionwith the givenCharSection, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTHand theTransmissionMetrics.DEFAULT_ENDIANESS. It is pre-initialized with the given value as offromType(Object, String...). -
DynamicTypeSection
public DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING. It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.
-
DynamicTypeSection
public DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aCharset- TheCharsetto be used for encoding and decodingStringinstances.
-
DynamicTypeSection
public DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aCharset- TheCharsetto be used for encoding and decodingStringinstances.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
public DynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING. It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aLengthWidth- The width (in bytes) to be used for length values.aEndianess- TheEndianessto be used for (length) values.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH,TransmissionMetrics.DEFAULT_ENDIANESSas well asTransmissionMetrics.DEFAULT_ENCODING). It is pre-initialized with the given value as offromType(Object, String...).- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object). The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.
-
DynamicTypeSection
public DynamicTypeSection(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs theDynamicTypeSectionwith the given properties. It is pre-initialized with the given value as offromType(Object, String...). The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
DynamicTypeSection
Constructs theDynamicTypeSectionwith the given properties. The configuration attributes are taken from theTransmissionMetricsconfiguration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics- TheTransmissionMetricsto be used for configuring this instance.
-
-
Method Details
-
fromType
public <T> void fromType(T aValue) Constructs theDynamicTypeSection'sSequencefrom the given type's instance . The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokeDynamicTypeTransmission.fromType(Object, String[])instead!- Specified by:
fromTypein interfaceDynamicTypeTransmission- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.
-
fromType
Constructs an instance for the given type T. . The attributes of the given data structure are processed using the predefined set of attributes in their according order.- Specified by:
fromTypein interfaceDynamicTypeTransmission- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aValue- The data structure's value.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.
-
getEncoding
- Specified by:
getEncodingin interfaceorg.refcodes.mixin.EncodingAccessor<Charset>
-
getEndianess
public org.refcodes.numerical.Endianess getEndianess()- Specified by:
getEndianessin interfaceorg.refcodes.numerical.EndianessAccessor
-
getLengthWidth
public int getLengthWidth()Retrieves the length width (in bytes) from the length width (in bytes) property.- Specified by:
getLengthWidthin interfaceLengthWidthAccessor- Returns:
- The length width (in bytes) stored by the length width (in bytes) property.
-
reset
public void reset()Resets any dynamic data (e.g. values such as payloads or checksums) and must not(!) reset any configurations or settings required to produce the dynamic data (e.g. theTransmissionMetrics).- Specified by:
resetin interfaceorg.refcodes.mixin.Resetable- Specified by:
resetin interfaceTransmission- Overrides:
resetin classSequenceSection
-
toSchema
- Specified by:
toSchemain interfaceorg.refcodes.schema.Schemable- Specified by:
toSchemain interfaceTransmission- Overrides:
toSchemain classSequenceSection
-
toSimpleTypeMap
public org.refcodes.struct.SimpleTypeMap toSimpleTypeMap()Returns theSimpleTypeMaprepresentation of thisTransmission. In case this Transmission hasTransmissionchildren, then the children are queried as well and contained in the resultingSimpleTypeMap. The aliases of the accordingTransmissioninstances represent the resulting path to aTransmission's final simple type.- Specified by:
toSimpleTypeMapin interfaceTransmission- Overrides:
toSimpleTypeMapin classSequenceSection- Returns:
- The
SimpleTypeMaprepresenting thisTransmissionand (if any) its children, with the according aliases forming the paths to theTransmission's values.
-
toType
Constructs an instance for the given type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokeDynamicTypeTransmission.fromType(Object, String...)instead!- Specified by:
toTypein interfaceDynamicTypeTransmission- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aType- The data structure's type.- Returns:
- The according type constructed from the
DynamicTypeSection'sSequence.
-
toType
Constructs an instance for the given type T. . The attributes of the given data structure are processed using the predefined set of attributes in their according order- Specified by:
toTypein interfaceDynamicTypeTransmission- Type Parameters:
T- The type of the data structure representing the body.- Parameters:
aType- The data structure's type.aAttributes- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The according type constructed from the
DynamicTypeSection'sSequence.
-