spo.src.SPDB.Schema
Class schemaValidation

java.lang.Object
  |
  +--spo.src.SPDB.Schema.schemaValidation

public class schemaValidation
extends java.lang.Object

A schema validation class. XML Schema Processor uses the XMLSchema specification from a specified URL/file to validate the contents of a specified XML file.


Field Summary
 oracle.xml.parser.v2.DOMParser parser
           
 
Constructor Summary
schemaValidation()
          Initialize an instance for the class
 
Method Summary
 java.lang.String getSchema()
           
 int process(java.io.BufferedReader br)
          Use default schema with schema URL
 void process(java.lang.String urlStr)
          Provides XML file with URL string
 void process(java.lang.String urlStr, java.lang.String schemaStr)
          Provides schema with file name
 void setSchema(java.lang.String schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

public oracle.xml.parser.v2.DOMParser parser
Constructor Detail

schemaValidation

public schemaValidation()
Initialize an instance for the class

Method Detail

process

public int process(java.io.BufferedReader br)
            throws java.lang.Exception
Use default schema with schema URL

Parameters:
br - A BufferedReader stream
java.lang.Exception

process

public void process(java.lang.String urlStr)
             throws java.lang.Exception
Provides XML file with URL string

Parameters:
urlStr - the URL string for the XML file
java.lang.Exception

process

public void process(java.lang.String urlStr,
                    java.lang.String schemaStr)
             throws java.lang.Exception
Provides schema with file name

Parameters:
urlStr - the URL string for the XML file
schemaStr - the URL string for the schema file
java.lang.Exception

getSchema

public java.lang.String getSchema()

setSchema

public void setSchema(java.lang.String schema)


Copyright © 2003 UKCS. All Rights Reserved.