org.apache.bval.jsr303.xml
Class ValidationMappingParser

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

public class ValidationMappingParser
extends Object

Uses JAXB to parse constraints.xml based on validation-mapping-1.0.xsd.


Constructor Summary
ValidationMappingParser(ApacheValidatorFactory factory)
          Create a new ValidationMappingParser instance.
 
Method Summary
 void processMappingConfig(Set<InputStream> xmlStreams)
          Parse files with constraint mappings and collect information in the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationMappingParser

public ValidationMappingParser(ApacheValidatorFactory factory)
Create a new ValidationMappingParser instance.

Parameters:
factory -
Method Detail

processMappingConfig

public void processMappingConfig(Set<InputStream> xmlStreams)
                          throws ValidationException
Parse files with constraint mappings and collect information in the factory.

Parameters:
xmlStreams - - one or more contraints.xml file streams to parse
Throws:
ValidationException


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.