com.spss.psapi.transform

Interface StreamValidationResult



  • public interface StreamValidationResult
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.List<java.lang.String> getErrorMessages()
      Returns the validation error messages.
      java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getFieldsRequired()
      Returns the required fields.
      java.util.Set<java.lang.String> getFieldsRequired(java.lang.String nodeId)
      Returns the required field names by node id, this would be an empty set when getValidationResult() is false.
      boolean getValidationResult()
      Returns the stream validation result.
    • Method Detail

      • getValidationResult

        boolean getValidationResult()
        Returns the stream validation result.
        Returns:
        true if validation is successful, false otherwise
      • getFieldsRequired

        java.util.Set<java.lang.String> getFieldsRequired(java.lang.String nodeId)
        Returns the required field names by node id, this would be an empty set when getValidationResult() is false.
        Parameters:
        nodeId - ID of a node
        Returns:
        a set of String which indicates the required field names of the node
      • getFieldsRequired

        java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getFieldsRequired()
        Returns the required fields. This would be an empty map when getValidationResult() is false.
        Returns:
        the required field names of all source nodes with file type and the terminal node which used for validating
      • getErrorMessages

        java.util.List<java.lang.String> getErrorMessages()
        Returns the validation error messages. This is an empty list when getValidationResult() is true.
        Returns:
        a list of error messages

Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.