Package org.codehaus.enunciate.contract.validation

Examples of org.codehaus.enunciate.contract.validation.DefaultValidator


    FreemarkerModel.set(model);
    TypeDefinition typeDef = model.createTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.RootElementMap"));
    model.add(typeDef);
    typeDef = model.createTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.RootElementMapAdapted"));
    model.add(typeDef);
    DefaultValidator validator = new DefaultValidator();
    for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) {
      for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) {
        ValidationResult result = validator.validateTypeDefinition(typeDefinition);
        if (result.hasErrors()) {
          for (ValidationMessage validationMessage : result.getErrors()) {
            fail(validationMessage.getText());
          }
        }
View Full Code Here


    FreemarkerModel.set(model);
    TypeDefinition typeDef = model.createTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.MapExtendedReference"));
    model.add(typeDef);
    typeDef = model.createTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.RootElementMapAdapted"));
    model.add(typeDef);
    DefaultValidator validator = new DefaultValidator();
    for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) {
      for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) {
        ValidationResult result = validator.validateTypeDefinition(typeDefinition);
        if (result.hasErrors()) {
          for (ValidationMessage validationMessage : result.getErrors()) {
            fail(validationMessage.getText());
          }
        }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.contract.validation.DefaultValidator

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.