test_class.declarator: validator
test_class.modifier: private
test_class.original_string: private XsdValidator validator;
test_class.type: XsdValidator
test_class.var_name: validator
test_class.declarator: SCHEMA_RESOURCE = "/xsd/test.xsd"
test_class.modifier: private static final
test_class.original_string: private static final String SCHEMA_RESOURCE = "/xsd/test.xsd";
test_class.type: String
test_class.var_name: SCHEMA_RESOURCE
test_class.file: commons/xml/src/test/java/org/openehealth/ipf/commons/xml/XsdValidatorTest.java
test_class.identifier: XsdValidatorTest
test_case.body: @Test
  	public void testValidate() throws Exception {
  		XsdValidator.getCachedSchemas().clear();
  		Source testXml = new StreamSource(new ClassPathResource("xsd/test.xml")
  				.getInputStream());
  		validator.validate(testXml, SCHEMA_RESOURCE);
  		Assert.assertTrue(XsdValidator.getCachedSchemas().containsKey(
  				SCHEMA_RESOURCE));
  	}
test_case.class_method_signature: XsdValidatorTest.testValidate()
test_case.full_signature: @Test public void testValidate()
test_case.identifier: testValidate
test_case.invocations: clear getCachedSchemas getInputStream validate assertTrue containsKey getCachedSchemas
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidate()
focal_class.declarator: LOG = LoggerFactory.getLogger(XsdValidator.class)
focal_class.modifier: private final static
focal_class.original_string: private final static Logger LOG = LoggerFactory.getLogger(XsdValidator.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: resourceLoader
focal_class.modifier: private
focal_class.original_string: private ResourceLoader resourceLoader;
focal_class.type: ResourceLoader
focal_class.var_name: resourceLoader
focal_class.declarator: lrri = new LSResourceResolverImpl()
focal_class.modifier: private final static
focal_class.original_string: private final static LSResourceResolverImpl lrri = new LSResourceResolverImpl();
focal_class.type: LSResourceResolverImpl
focal_class.var_name: lrri
focal_class.declarator: schemaLanguage = XMLConstants.W3C_XML_SCHEMA_NS_URI
focal_class.modifier: private
focal_class.original_string: private String schemaLanguage = XMLConstants.W3C_XML_SCHEMA_NS_URI;
focal_class.type: String
focal_class.var_name: schemaLanguage
focal_class.declarator: cachedSchemas = Collections
              .synchronizedMap(new HashMap<String, Schema>(3))
focal_class.modifier: private final static
focal_class.original_string: private final static Map<String, Schema> cachedSchemas = Collections
              .synchronizedMap(new HashMap<String, Schema>(3));
focal_class.type: Map<String, Schema>
focal_class.var_name: cachedSchemas
focal_class.file: commons/xml/src/main/java/org/openehealth/ipf/commons/xml/XsdValidator.java
focal_class.identifier: XsdValidator
focal_class.interfaces: implements Validator<Source, String>
focal_class.class_method_signature: XsdValidator.XsdValidator()
focal_class.full_signature: public  XsdValidator()
focal_class.identifier: XsdValidator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  XsdValidator()
focal_class.class_method_signature: XsdValidator.XsdValidator(ClassLoader classloader)
focal_class.full_signature: public  XsdValidator(ClassLoader classloader)
focal_class.identifier: XsdValidator
focal_class.modifiers: public
focal_class.parameters: (ClassLoader classloader)
focal_class.signature:  XsdValidator(ClassLoader classloader)
focal_class.class_method_signature: XsdValidator.validate(Source message, String schema)
focal_class.full_signature: @Override public void validate(Source message, String schema)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (Source message, String schema)
focal_class.return: void
focal_class.signature: void validate(Source message, String schema)
focal_class.class_method_signature: XsdValidator.doValidate(Source message,
              String schemaResource)
focal_class.full_signature: protected List<ValidationException> doValidate(Source message,
              String schemaResource)
focal_class.identifier: doValidate
focal_class.modifiers: protected
focal_class.parameters: (Source message,
              String schemaResource)
focal_class.return: List<ValidationException>
focal_class.signature: List<ValidationException> doValidate(Source message,
              String schemaResource)
focal_class.class_method_signature: XsdValidator.obtainSchema(String schemaResource)
focal_class.full_signature: protected Schema obtainSchema(String schemaResource)
focal_class.identifier: obtainSchema
focal_class.modifiers: protected
focal_class.parameters: (String schemaResource)
focal_class.return: Schema
focal_class.signature: Schema obtainSchema(String schemaResource)
focal_class.class_method_signature: XsdValidator.createSchema(String schemaResource)
focal_class.full_signature: protected synchronized void createSchema(String schemaResource)
focal_class.identifier: createSchema
focal_class.modifiers: protected synchronized
focal_class.parameters: (String schemaResource)
focal_class.return: void
focal_class.signature: void createSchema(String schemaResource)
focal_class.class_method_signature: XsdValidator.schemaSource(String resource)
focal_class.full_signature: public Source schemaSource(String resource)
focal_class.identifier: schemaSource
focal_class.modifiers: public
focal_class.parameters: (String resource)
focal_class.return: Source
focal_class.signature: Source schemaSource(String resource)
focal_class.class_method_signature: XsdValidator.getSchemaLanguage()
focal_class.full_signature: public String getSchemaLanguage()
focal_class.identifier: getSchemaLanguage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSchemaLanguage()
focal_class.class_method_signature: XsdValidator.setSchemaLanguage(String schemaLanguage)
focal_class.full_signature: public void setSchemaLanguage(String schemaLanguage)
focal_class.identifier: setSchemaLanguage
focal_class.modifiers: public
focal_class.parameters: (String schemaLanguage)
focal_class.return: void
focal_class.signature: void setSchemaLanguage(String schemaLanguage)
focal_class.class_method_signature: XsdValidator.getCachedSchemas()
focal_class.full_signature: static Map<String, Schema> getCachedSchemas()
focal_class.identifier: getCachedSchemas
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Map<String, Schema>
focal_class.signature: Map<String, Schema> getCachedSchemas()
focal_method.body: @Override
      public void validate(Source message, String schema) {
          List<ValidationException> exceptions = doValidate(message, schema);
          if (exceptions != null && exceptions.size() > 0) {
              throw new ValidationException(exceptions);
          }
      }
focal_method.class_method_signature: XsdValidator.validate(Source message, String schema)
focal_method.full_signature: @Override public void validate(Source message, String schema)
focal_method.identifier: validate
focal_method.invocations: doValidate size
focal_method.modifiers: @Override public
focal_method.parameters: (Source message, String schema)
focal_method.return: void
focal_method.signature: void validate(Source message, String schema)