DLESE Tools
v1.6.0

org.dlese.dpc.schemedit
Class BadCharChecker

java.lang.Object
  extended by org.dlese.dpc.schemedit.BadCharChecker

public class BadCharChecker
extends Object

Checks XML documents for presence of bad characters and builds a list of BadCharEntries containing the element xpath and value containing the bad char.

Author:
ostwald

$Id $


Nested Class Summary
 class BadCharChecker.BadCharEntry
           
 
Constructor Summary
BadCharChecker()
           
 
Method Summary
 List check(Document doc)
          First checks for the presense of a "badChar" in the document as a string, and if one is found creates a list of BadCharEntry
 List check(String xmlRecord)
          Check localized xmlRecord in string form for bad characters
 List check(String recordPath, MetaDataFramework framework)
           
 BadCharChecker.BadCharEntry getBadCharEntry(String xpath, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BadCharChecker

public BadCharChecker()
Method Detail

check

public List check(String recordPath,
                  MetaDataFramework framework)
           throws Exception
Throws:
Exception

check

public List check(String xmlRecord)
           throws Exception
Check localized xmlRecord in string form for bad characters

Throws:
Exception

check

public List check(Document doc)
           throws Exception
First checks for the presense of a "badChar" in the document as a string, and if one is found creates a list of BadCharEntry

Throws:
Exception

getBadCharEntry

public BadCharChecker.BadCharEntry getBadCharEntry(String xpath,
                                                   String value)

DLESE Tools
v1.6.0