Class AbstractPayloadSection<T>

    • Field Detail

      • _payload

        protected T _payload
      • _alias

        protected String _alias
    • Constructor Detail

      • AbstractPayloadSection

        protected AbstractPayloadSection()
        Empty constructor fur sub-classes.
      • AbstractPayloadSection

        public AbstractPayloadSection​(String aAlias,
                                      T aValue)
        Constructs a Section instance with the given value.
        Parameters:
        aAlias - The alias which identifies the content of this segment.
        aValue - The value (payload) to be contained by the Section.
    • Method Detail

      • setPayload

        public void setPayload​(T aValue)
        Specified by:
        setPayload in interface org.refcodes.mixin.PayloadAccessor.PayloadMutator<T>
      • getPayload

        public T getPayload()
        Specified by:
        getPayload in interface org.refcodes.mixin.PayloadAccessor<T>
      • getAlias

        public String getAlias()
        Specified by:
        getAlias in interface org.refcodes.mixin.AliasAccessor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toSimpleTypeMap

        public org.refcodes.struct.SimpleTypeMap toSimpleTypeMap()
        Returns the SimpleTypeMap representation of this Transmission. In case this Transmission has Transmission children, then the children are queried as well and contained in the resulting SimpleTypeMap. The aliases of the according Transmission instances represent the resulting path to a Transmission's final simple type.
        Specified by:
        toSimpleTypeMap in interface Transmission
        Returns:
        The SimpleTypeMap representing this Transmission and (if any) its children, with the according aliases forming the paths to the Transmission's values.