|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.marc4j.marc.Verifier
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.
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 |
public static void checkTag(String tag)
Checks if the tag is a valid tag name.
tag
- the tag name to check
IllegalTagException
- if the tag is not validpublic static void checkDataElement(char[] data)
Checks if the data element does not contain control charecters.
data
- the characters to check
IllegalDataElementException
- if the data element
contains control characterspublic static void checkDataElement(char ch)
Checks if the data element does not contain control charecters.
ch
- - the character to check
IllegalDataElementException
- if the data element
contains control characters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |