Interface X12CodeListValidationRule.Builder

  • Method Details

    • elementId

      Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified.

      Parameters:
      elementId - Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codesToAdd

      Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.

      Parameters:
      codesToAdd - Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codesToAdd

      X12CodeListValidationRule.Builder codesToAdd(String... codesToAdd)

      Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.

      Parameters:
      codesToAdd - Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codesToRemove

      X12CodeListValidationRule.Builder codesToRemove(Collection<String> codesToRemove)

      Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.

      Parameters:
      codesToRemove - Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codesToRemove

      X12CodeListValidationRule.Builder codesToRemove(String... codesToRemove)

      Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.

      Parameters:
      codesToRemove - Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.