|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.configkit.ConfigValidatorFactory
The ConfigValidatorFactory is responsible for creating ConfigValidator objects to validate configuration according to specified schemas.
Field Summary | |
static String |
RELAX_NG
A constant defining namespace of RELAX_NG schema language. |
static String |
W3C_XML_SCHEMA
A constant defining namespace of W3C XMLSchema language. |
Constructor Summary | |
ConfigValidatorFactory()
|
Method Summary | |
static ConfigValidator |
create(org.xml.sax.InputSource inputSource)
Create a ConfigValidator and guess Schema type. |
static ConfigValidator |
create(org.xml.sax.InputSource inputSource,
org.xml.sax.EntityResolver resolver)
Create a ConfigValidator and guess Schema type. |
static ConfigValidator |
create(InputStream inputStream)
Create a ConfigValidator and guess Schema type. |
static ConfigValidator |
create(String schemaType,
org.xml.sax.InputSource inputSource)
Create a ConfigValidator with specified type. |
static ConfigValidator |
create(String schemaType,
org.xml.sax.InputSource inputSource,
org.xml.sax.EntityResolver entityResolver)
Create a ConfigValidator with specified type. |
static ConfigValidator |
create(String schemaType,
InputStream inputStream)
Create a ConfigValidator with specified type. |
static ConfigValidator |
create(String schemaType,
InputStream inputStream,
org.xml.sax.EntityResolver resolver)
Create a ConfigValidator with specified type. |
static ConfigValidator |
create(String publicID,
String systemID,
ClassLoader classLoader)
Create a ConfigValidator and attempt to guess Schema Type. |
static ConfigValidator |
create(String schemaType,
String publicID,
String systemID,
ClassLoader classLoader)
Create a ConfigValidator with specified type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RELAX_NG
public static final String W3C_XML_SCHEMA
Constructor Detail |
public ConfigValidatorFactory()
Method Detail |
public static ConfigValidator create(String publicID, String systemID, ClassLoader classLoader) throws Exception
ResolverFactory
.
publicID
- the publicID of schema (may be null)systemID
- the systemID of schema (may be null)classLoader
- the classloader from which to load schema
Exception
- if unable to create validatorpublic static ConfigValidator create(String schemaType, String publicID, String systemID, ClassLoader classLoader) throws Exception
ResolverFactory
.
schemaType
- the type of the schema. (Usually a URL such as
"http://relaxng.org/ns/structure/1.0")publicID
- the publicID of schema (may be null)systemID
- the systemID of schema (may be null)classLoader
- the classloader from which to load schema
Exception
- if unable to create validatorpublic static ConfigValidator create(InputStream inputStream) throws Exception
inputStream
- the stream to load schema from
Exception
- if unable to create validatorpublic static ConfigValidator create(String schemaType, InputStream inputStream) throws Exception
schemaType
- the type of the schema. (Usually a URL such as
"http://relaxng.org/ns/structure/1.0")inputStream
- the stream to load schema from
Exception
- if unable to create validatorpublic static ConfigValidator create(String schemaType, InputStream inputStream, org.xml.sax.EntityResolver resolver) throws Exception
schemaType
- the type of the schema. (Usually a URL such as
"http://relaxng.org/ns/structure/1.0")inputStream
- the stream to load schema fromresolver
- a resolver used to resolve entitys for input data
Exception
- if unable to create validatorpublic static ConfigValidator create(org.xml.sax.InputSource inputSource) throws Exception
inputSource
- the source to load schema from
Exception
- if unable to create validatorpublic static ConfigValidator create(org.xml.sax.InputSource inputSource, org.xml.sax.EntityResolver resolver) throws Exception
inputSource
- the source to load schema fromresolver
- a resolver used to resolve entitys for input data
Exception
- if unable to create validatorpublic static ConfigValidator create(String schemaType, org.xml.sax.InputSource inputSource) throws Exception
schemaType
- the type of the schema. (Usually a URL such as
"http://relaxng.org/ns/structure/1.0")inputSource
- the source to load schema from
Exception
- if unable to create validatorpublic static ConfigValidator create(String schemaType, org.xml.sax.InputSource inputSource, org.xml.sax.EntityResolver entityResolver) throws Exception
schemaType
- the type of the schema. (Usually a URL such as
"http://relaxng.org/ns/structure/1.0")inputSource
- the source to load schema fromentityResolver
- a resolver used to resolve entitys for input data
Exception
- if unable to create validator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |