org.kuali.ole.ingest
Class OleLocationXMLSchemaValidator

java.lang.Object
  extended by org.kuali.ole.ingest.OleLocationXMLSchemaValidator

public class OleLocationXMLSchemaValidator
extends Object

This class provides schema validation for uploaded location xml


Constructor Summary
OleLocationXMLSchemaValidator()
           
 
Method Summary
 boolean validateContentsAgainstSchema(InputStream inputStream)
          This method returns True/False.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OleLocationXMLSchemaValidator

public OleLocationXMLSchemaValidator()
Method Detail

validateContentsAgainstSchema

public boolean validateContentsAgainstSchema(InputStream inputStream)
                                      throws ParseException,
                                             IOException,
                                             SAXException
This method returns True/False. This method validate the inputStream content with W3C Xml Schema standard,if it matches it return True else return False.

Parameters:
inputStream -
Returns:
boolean
Throws:
ParseException
IOException
SAXException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.