Class DataValidationOptions


  • public class DataValidationOptions
    extends java.lang.Object
    Holds options for controlling how validation is performed when determining whether or not to create data structures at a particular location.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setIgnoreDefinedData​(boolean ignoreDefinedData)
      Sets whether or not existing defined data should invalidate the creation of new data.
      void setIgnoreInstructions​(boolean ignoreInstructions)
      Sets whether or not existing instructions should invalidate the creation of new data.
      void setValidateReferredToData​(boolean validateReferredToData)
      Sets whether or not to validate follow on data that is referred to by the current new structure.
      boolean shouldIgnoreDefinedData()
      An option indicating whether or not existing defined data should make the location invalid for new data.
      boolean shouldIgnoreInstructions()
      An option indicating whether or not existing instructions should make the location invalid for new data.
      boolean shouldValidateReferredToData()
      An option indicating whether or not to follow references to other data and validate those too.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataValidationOptions

        public DataValidationOptions()
        Creates a DataValidationOptions object with the default values.
      • DataValidationOptions

        public DataValidationOptions​(DataValidationOptions validationOptions)
        Copy constructor
        Parameters:
        validationOptions - the data validation options to copy
    • Method Detail

      • shouldValidateReferredToData

        public boolean shouldValidateReferredToData()
        An option indicating whether or not to follow references to other data and validate those too. If this is set to true then the data is only valid if its referred to data is also valid.
        Default is true.
        Returns:
        true if structures should be validated for referred to data.
      • setValidateReferredToData

        public void setValidateReferredToData​(boolean validateReferredToData)
        Sets whether or not to validate follow on data that is referred to by the current new structure.
        Parameters:
        validateReferredToData - true indicates follow on data should be validated.
      • shouldIgnoreInstructions

        public boolean shouldIgnoreInstructions()
        An option indicating whether or not existing instructions should make the location invalid for new data.
        Default is false.
        Returns:
        false if existing instructions should cause the creation of new data to be invalid.
      • setIgnoreInstructions

        public void setIgnoreInstructions​(boolean ignoreInstructions)
        Sets whether or not existing instructions should invalidate the creation of new data.
        Parameters:
        ignoreInstructions - false indicates existing instructions, where the data would be created, should cause validation to fail.
      • shouldIgnoreDefinedData

        public boolean shouldIgnoreDefinedData()
        An option indicating whether or not existing defined data should make the location invalid for new data.
        Default is true.
        Returns:
        false if existing defined data should cause the creation of new data to be invalid.
      • setIgnoreDefinedData

        public void setIgnoreDefinedData​(boolean ignoreDefinedData)
        Sets whether or not existing defined data should invalidate the creation of new data.
        Parameters:
        ignoreDefinedData - false indicates existing defined data, where the data would be created, should cause validation to fail.