Package org.hibernate.validator.xml

Examples of org.hibernate.validator.xml.ValidationConfigType


   * Tries to check whether a validation.xml file exists and parses it using JAXB.
   *
   * @return The parameters parsed out of <i>validation.xml</i> wrapped in an instance of <code>ConfigurationImpl.ValidationBootstrapParameters</code>.
   */
  public ValidationBootstrapParameters parseValidationXml() {
    ValidationConfigType config = getValidationConfig();
    ValidationBootstrapParameters xmlParameters = new ValidationBootstrapParameters();
    if ( config != null ) {
      // collect the paramters from the xml file
      setProviderClassFromXml( config, xmlParameters );
      setMessageInterpolatorFromXml( config, xmlParameters );
View Full Code Here


      return null;
    }

    log.info( "{} found.", VALIDATION_XML_FILE );

    ValidationConfigType validationConfig;
    Schema schema = getValidationConfigurationSchema();
    try {
      JAXBContext jc = JAXBContext.newInstance( ValidationConfigType.class );
      Unmarshaller unmarshaller = jc.createUnmarshaller();
      unmarshaller.setSchema( schema );
View Full Code Here

TOP

Related Classes of org.hibernate.validator.xml.ValidationConfigType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.