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.

Version:
$Revision: 1.1 $
Author:
Bas Peters

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright 2001-2003 Bas Peters. All Rights Reserved.