org.oclc.da.gdfr.registryprototype.validation
Class XmlValidator

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.validation.XmlValidator
All Implemented Interfaces:
Validator

public class XmlValidator
extends java.lang.Object
implements Validator


Constructor Summary
XmlValidator(java.lang.String schemaLocation)
           
 
Method Summary
 boolean isValid(java.lang.Object theXml)
          Validates an Xml String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlValidator

public XmlValidator(java.lang.String schemaLocation)
Method Detail

isValid

public boolean isValid(java.lang.Object theXml)
Validates an Xml String. Looks for 1) syntax 2) All necessary elements are created according to the schema

Specified by:
isValid in interface Validator
Parameters:
theXml - The XML string to validate
Returns:
true if valid, false otherwise


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.