org.xmlmatchers.validation
Class SchemaFactory

java.lang.Object
  extended by org.xmlmatchers.validation.SchemaFactory

public class SchemaFactory
extends Object

This is still experimental

Author:
David Ehringer

Method Summary
static Schema dtdSchemaFrom(URL url)
           
static Schema dtdSchemaFromClasspath(String resource)
           
 Schema from(URL url)
           
static SchemaFactory newInstance(String language)
           
static Schema relaxNGSchemaFrom(URL url)
           
static Schema relaxNGSchemaFromClasspath(String resource)
           
static Schema w3cXmlSchemaFrom(File file)
           
static Schema w3cXmlSchemaFrom(URL url)
           
static Schema w3cXmlSchemaFromClasspath(String resource)
           
static Schema w3cXmlSchemaFromString(String schemaContents)
           
static Schema w3cXmlSchemaFromUrl(String urlString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static SchemaFactory newInstance(String language)

from

public Schema from(URL url)

w3cXmlSchemaFromString

public static Schema w3cXmlSchemaFromString(String schemaContents)
                                     throws SAXException
Throws:
SAXException

w3cXmlSchemaFromUrl

public static Schema w3cXmlSchemaFromUrl(String urlString)
                                  throws SAXException,
                                         MalformedURLException
Throws:
SAXException
MalformedURLException

w3cXmlSchemaFromClasspath

public static Schema w3cXmlSchemaFromClasspath(String resource)
                                        throws SAXException
Throws:
SAXException

w3cXmlSchemaFrom

public static Schema w3cXmlSchemaFrom(File file)
                               throws SAXException
Throws:
SAXException

w3cXmlSchemaFrom

public static Schema w3cXmlSchemaFrom(URL url)
                               throws SAXException
Throws:
SAXException

dtdSchemaFromClasspath

public static Schema dtdSchemaFromClasspath(String resource)
                                     throws SAXException
Throws:
SAXException

dtdSchemaFrom

public static Schema dtdSchemaFrom(URL url)
                            throws SAXException
Throws:
SAXException

relaxNGSchemaFromClasspath

public static Schema relaxNGSchemaFromClasspath(String resource)
                                         throws SAXException
Throws:
SAXException

relaxNGSchemaFrom

public static Schema relaxNGSchemaFrom(URL url)
                                throws SAXException
Throws:
SAXException


Copyright © 2010-2011. All Rights Reserved.