Class BaseDate

    • Constructor Detail

      • BaseDate

        public BaseDate​(CipULINT data,
                        int... indices)
    • Method Detail

      • getNestingDef

        public DataDefinitionSeg getNestingDef()
        Description copied from class: BaseDataType
        Return the element (not including array) type definition as a Path Segment, using the abbreviated form if a composite data type.
        Specified by:
        getNestingDef in class BaseDataType<java.util.Date>
      • setDimensions

        public void setDimensions​(int[] newDimensions)
        Description copied from class: BaseDataType
        Update the lengths of the array dimensions to the given values. The number of subscripts must match the current number of subscripts. The operation must be data-preserving.

        This implementation handles pure Object storage types. Anything else must override.

        Overrides:
        setDimensions in class BaseDataType<java.util.Date>
      • bytesEach

        public int bytesEach()
        Description copied from class: BaseDataType
        Obtain the bytes-per-element of this object's payload encoding. Objects with variable length encodings must return zero and implement the bytesImpl(), minEach(), maxEach(), and alignment() methods instead.
        Specified by:
        bytesEach in class BaseDataType<java.util.Date>
        Returns:
        encoded bytes per element
      • bytesImpl

        protected int bytesImpl​(int[] indices)
        Description copied from class: BaseDataType
        Retrieve the bytes payload size of a single array element (or sole element). Objects with fixed element sizes may simply return bytesEach() here.
        Specified by:
        bytesImpl in class BaseDataType<java.util.Date>
        Returns:
      • setPayloadImpl

        protected void setPayloadImpl​(java.nio.ByteBuffer source,
                                      int[] indices)
        Description copied from class: BaseDataType
        All concrete implementations must supply their per-element decoder here.
        Specified by:
        setPayloadImpl in class BaseDataType<java.util.Date>
      • setFromTokenImpl

        protected void setFromTokenImpl​(java.lang.String token,
                                        int[] indices)
        Description copied from class: BaseDataType
        Override this if single elements can be set from single tokens. The default decodes as Long and uses setLong().
        Overrides:
        setFromTokenImpl in class BaseDataType<java.util.Date>
        Parameters:
        token - The single token obtained from the tokenizer for this one element.
        indices - The complete set of subscripts
      • putPayloadImpl

        protected void putPayloadImpl​(java.nio.ByteBuffer dest,
                                      int[] indices)
        Description copied from class: BaseDataType
        All concrete implementations must supply their per-element encoder here.
        Specified by:
        putPayloadImpl in class BaseDataType<java.util.Date>
      • copyToImpl

        protected void copyToImpl​(BaseDataType<?> dest,
                                  int[] indices)
        Description copied from class: BaseDataType
        Support deep copy operations one element at a time.
        Specified by:
        copyToImpl in class BaseDataType<java.util.Date>
      • copyToImpl

        protected void copyToImpl​(BaseDataType<?> dest,
                                  int[] toIndices,
                                  int[] fromIndices)
        Description copied from class: BaseDataType
        Support slice copy operations one element at a time.
        Specified by:
        copyToImpl in class BaseDataType<java.util.Date>
      • setPayload

        public void setPayload​(java.nio.ByteBuffer source,
                               int... indices)
        Description copied from class: BaseDataType
        Decode a value from specification wire format to instance storage.
        Overrides:
        setPayload in class BaseDataType<java.util.Date>
      • putPayload

        public void putPayload​(java.nio.ByteBuffer dest,
                               int... indices)
        Description copied from class: BaseDataType
        All CIP datatypes must provide bytestream payloads. When an array, and fewer indices are supplied than dimensions, multiple consecutive payloads are to be written from the array into the destination buffer.
        Overrides:
        putPayload in class BaseDataType<java.util.Date>
      • singleToString

        protected java.lang.String singleToString​(int[] indices)
        Overrides:
        singleToString in class BaseDataType<java.util.Date>