Package org.marc4j.marc
Class Verifier
- java.lang.Object
-
- org.marc4j.marc.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkDataElement(char ch)
Checks if the data element does not contain control charecters.static void
checkDataElement(char[] data)
Checks if the data element does not contain control charecters.static void
checkTag(String tag)
Checks if the tag is a valid tag name.
-
-
-
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
-
-