Class CipSTRINGI


  • public class CipSTRINGI
    extends BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
    • Field Detail

      • csCodes

        protected static final java.util.Map<java.lang.Integer,​java.nio.charset.Charset> csCodes
    • Constructor Detail

      • CipSTRINGI

        public CipSTRINGI​(int[] dimensions)
      • CipSTRINGI

        protected CipSTRINGI​(CipSTRINGI 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.Map<java.lang.String,​java.lang.String>>
      • crcName

        public java.lang.String crcName()
        Description copied from class: BaseDataType
        Obtain the name of this type as used for computing structure CRCs. Can be different from the name(s) used by the CipPath parser.
        Overrides:
        crcName in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Returns:
      • browseInnerImpl

        public java.util.List<PathSegment> browseInnerImpl()
        Description copied from class: BaseDataType
        Complex types that have nested data understood by the DataResolver must enumerate the path segments that are appropriate for the current instance's content. This is typically static for structure members, but dynamic for international string languages.
        Overrides:
        browseInnerImpl in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Returns:
        A list of currently valid path selector segments.
      • get

        public java.lang.String get​(int[] indices,
                                    java.lang.String lang)
      • set

        public void set​(int[] indices,
                        java.lang.String lang,
                        java.lang.String content)
      • get

        public java.util.Map<java.lang.String,​java.lang.String> get​(int[] indices)
        Description copied from class: BaseDataType
        Application-side value retrieval. Subclasses must implement this function to retrieve elements of the storage array in the application data type.
        Specified by:
        get in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Parameters:
        indices - Array subscripts. Missing subscripts not allowed.
        Returns:
      • set

        public void set​(int[] indices,
                        java.util.Map<java.lang.String,​java.lang.String> val)
        Description copied from class: BaseDataType
        Application-side value storage. Subclasses must implement this function to store one value or complex element into the storage array.
        Specified by:
        set in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Parameters:
        indices - Array subscripts. Missing subscripts not allowed.
      • wrap

        public CipSTRINGI wrap​(int[] indices)
        Description copied from class: BaseDataType
        Application-side wrapper for inner dimensions. Implementations must update memberOffsets if not not using the protected constructor.
        Specified by:
        wrap in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Parameters:
        indices - Array subscripts. Missing subscripts are allowed.
      • 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.Map<java.lang.String,​java.lang.String>>
        Returns:
        encoded bytes per element
      • minEach

        public int minEach()
        Description copied from class: BaseDataType
        Obtain the smallest number of bytes a single item can occupy in encoded form. Used in structures to compute min/max offset and total structure size range.

        Types where bytesEach is a constant should override this to return that constant too, as a performance optimization.

        Overrides:
        minEach in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Returns:
      • maxEach

        public int maxEach()
        Description copied from class: BaseDataType
        Obtain the largest number of bytes a single item can occupy in encoded form. Used in structures to compute min/max offset and total structure size range.

        Types where bytesEach is a constant should override this to return that constant too, as a performance optimization.

        Overrides:
        maxEach in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Returns:
      • alignment

        public int alignment()
        Description copied from class: BaseDataType
        Obtain the natural alignment of this data type. Used in structures to compute min/max offset and alignment.

        Types where bytesEach is a constant should override this to return a suitable constant too, as a performance optimization.

        Overrides:
        alignment in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
        Returns:
      • 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.Map<java.lang.String,​java.lang.String>>
        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.Map<java.lang.String,​java.lang.String>>
      • 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.Map<java.lang.String,​java.lang.String>>
      • copy

        public CipSTRINGI copy()
        Description copied from class: BaseDataType
        Produce a deep clone of the object.
        Specified by:
        copy in class BaseDataType<java.util.Map<java.lang.String,​java.lang.String>>
      • 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.Map<java.lang.String,​java.lang.String>>
      • 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.Map<java.lang.String,​java.lang.String>>