Class Verifier


  • public class Verifier
    extends Object

    Verifier checks tags and data elements.

    Note: Currently a tag is only checked for it's length and data elements are checked for MARC control characters.

    Author:
    Bas Peters
    • Method Detail

      • checkTag

        public static void checkTag​(String tag)

        Checks if the tag is a valid tag name.

        Parameters:
        tag - the tag name to check
        Throws:
        IllegalTagException - if the tag is not valid
      • checkDataElement

        public static void checkDataElement​(char[] data)
        Checks if the data element does not contain control charecters.
        Parameters:
        data - the characters to check
        Throws:
        IllegalDataElementException - if the data element contains control characters
      • checkDataElement

        public static void checkDataElement​(char ch)

        Checks if the data element does not contain control charecters.

        Parameters:
        ch - - the character to check
        Throws:
        IllegalDataElementException - if the data element contains control characters