org.jomc.model
Interface ModelObjectValidator

Package class diagram package ModelObjectValidator
All Known Implementing Classes:
DefaultModelObjectValidator

public interface ModelObjectValidator

Validates object management and configuration model objects.

Version:
$Id: ModelObjectValidator.java 891 2009-11-02 03:40:00Z schulte2005 $
Author:
Christian Schulte

Method Summary
 ModelObjectValidationReport validateModelObject(javax.xml.bind.JAXBElement modelObject, javax.xml.bind.JAXBContext context, Schema schema)
          Validates a given model object to conform to a given schema using a given context.
 ModelObjectValidationReport validateModules(javax.xml.bind.JAXBElement<Modules> modules, javax.xml.bind.JAXBContext context, Schema schema)
          Validates a given list of modules to conform to a given schema using a given context and to form a valid object management and configuration runtime model.
 

Method Detail

validateModelObject

ModelObjectValidationReport validateModelObject(javax.xml.bind.JAXBElement modelObject,
                                                javax.xml.bind.JAXBContext context,
                                                Schema schema)
                                                throws NullPointerException,
                                                       javax.xml.bind.JAXBException
Validates a given model object to conform to a given schema using a given context.

Parameters:
modelObject - The model object to validate.
context - The context to use for validating modelObject.
schema - The schema to use for validating modelObect.
Returns:
Report about the given model object.
Throws:
NullPointerException - if modelObject, context or schema is null.
javax.xml.bind.JAXBException - if validation fails.
See Also:
ModelManager.getContext(java.lang.ClassLoader), ModelManager.getSchema(java.lang.ClassLoader), ModelObjectValidationReport.isModelObjectValid()

validateModules

ModelObjectValidationReport validateModules(javax.xml.bind.JAXBElement<Modules> modules,
                                            javax.xml.bind.JAXBContext context,
                                            Schema schema)
                                            throws NullPointerException,
                                                   javax.xml.bind.JAXBException
Validates a given list of modules to conform to a given schema using a given context and to form a valid object management and configuration runtime model.

Parameters:
modules - The modules to validate.
context - The context to use for validating modules.
schema - The schema to use for validating modules.
Returns:
Report about the given modules.
Throws:
NullPointerException - if modules, context or schema is null.
javax.xml.bind.JAXBException - if validation fails.
See Also:
ModelManager.getContext(java.lang.ClassLoader), ModelManager.getSchema(java.lang.ClassLoader), ModelObjectValidationReport.isModelObjectValid()


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.