org.jibx.schema.validation
Class ValidationUtils

java.lang.Object
  extended by org.jibx.schema.validation.ValidationUtils

public class ValidationUtils
extends Object

Utility methods for schema validation.

Author:
Dennis M. Sosnoski

Constructor Summary
ValidationUtils()
           
 
Method Summary
static SchemaElement[] load(Collection resolves, String uri, ValidationContext vctx)
          Load and validate a list of schemas.
static void validateSchemas(SchemaElement[] schemas, ValidationContext vctx)
          Validate an ordered array of schemas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationUtils

public ValidationUtils()
Method Detail

validateSchemas

public static void validateSchemas(SchemaElement[] schemas,
                                   ValidationContext vctx)
Validate an ordered array of schemas. To assure proper handling of chameleon schemas, schemas with target namespaces need to precede schemas with no target namespace in the array.

Parameters:
schemas - schemas to be validated
vctx - validation context to be used

load

public static SchemaElement[] load(Collection resolves,
                                   String uri,
                                   ValidationContext vctx)
                            throws JiBXException,
                                   IOException
Load and validate a list of schemas.

Parameters:
resolves - resolvers for schemas to be loaded
uri - effective namespace used for generation when no namespaced schemas are found (null if none)
vctx - context to use for validating schemas
Returns:
schemas in validation order
Throws:
JiBXException - on unrecoverable error in schemas
IOException - on error reading schemas


Copyright © 2005-2012 jibx.org. All Rights Reserved.