org.apache.bval.jsr303.xml
Class ValidationParser

java.lang.Object
  extended by org.apache.bval.jsr303.xml.ValidationParser

public class ValidationParser
extends Object

Description: uses jaxb to parse validation.xml


Field Summary
protected  String validationXmlFile
           
 
Constructor Summary
ValidationParser(String file)
          Create a new ValidationParser instance.
 
Method Summary
protected  InputStream getInputStream(String path)
           
(package private) static Schema getSchema(String xsd)
          Get a Schema object from the specified resource name.
 void processValidationConfig(ConfigurationImpl targetConfig)
          Process the validation configuration into targetConfig.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validationXmlFile

protected final String validationXmlFile
Constructor Detail

ValidationParser

public ValidationParser(String file)
Create a new ValidationParser instance.

Parameters:
file -
Method Detail

processValidationConfig

public void processValidationConfig(ConfigurationImpl targetConfig)
Process the validation configuration into targetConfig.

Parameters:
targetConfig -

getInputStream

protected InputStream getInputStream(String path)
                              throws IOException
Throws:
IOException

getSchema

static Schema getSchema(String xsd)
Get a Schema object from the specified resource name.

Parameters:
xsd -
Returns:
Schema


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.