Class MappingValueExtractor

    • Field Detail

      • mappingNo

        protected int mappingNo
    • Constructor Detail

      • MappingValueExtractor

        protected MappingValueExtractor​(int mappingNo)
        Creates a new instance.
        Parameters:
        mappingNo - If non-negative, the 0-based index of the mapping from which to extract a value. If negative, the 1-based index starting from the last mapping of the set.
    • Method Detail

      • extract

        public Object extract​(MappingSet ms)
        Description copied from interface: IValueExtractor
        Extracts the desired value from the given mapping set.
        Specified by:
        extract in interface IValueExtractor
        Parameters:
        ms - The mapping set from which to extract the value.
        Returns:
        The desired value, or null if the set does not contain a value at the specified location.
      • extract

        protected abstract Object extract​(Mapping mapping)
        Extracts the desired value from the given mapping.
        Parameters:
        mapping - The mapping from which to extract the value.
        Returns:
        The desired value, or null if the mapping does not have a value at the specified location.