Java Code Examples for org.springframework.xml.xsd.SimpleXsdSchema

The following examples show how to use org.springframework.xml.xsd.SimpleXsdSchema. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: citrus-admin   Source File: SchemaModelConverter.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Default constructor.
 */
public SchemaModelConverter() {
    super(SchemaModel.class, SimpleXsdSchema.class);

    addDecorator(new MethodCallDecorator("setLocation", "setXsd") {
        @Override
        public Object decorateArgument(Object arg) {
            getAdditionalImports().add(ClassPathResource.class);
            return "new ClassPathResource(\"" + arg.toString() + "\")";
        }
    });
}
 
Example 2
Source Project: springboot-learn   Source File: WebServiceConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
    return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}
 
Example 3
Source Project: Spring   Source File: WebServiceConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema coursesSchema() {
	return new SimpleXsdSchema(new ClassPathResource("course-details.xsd"));
}
 
Example 4
Source Project: Spring   Source File: WebServiceConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema userMessageSchema() {
    return new SimpleXsdSchema(new ClassPathResource("sample/userMessage.xsd"));
}
 
Example 5
Source Project: freeacs   Source File: WebServiceConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
  return new SimpleXsdSchema(new ClassPathResource("xsd/acs.xsd"));
}
 
Example 6
Source Project: spring-web-services   Source File: WebServiceConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public XsdSchema coursesSchema() {
	return new SimpleXsdSchema(new ClassPathResource("course-details.xsd"));
}
 
Example 7
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example 8
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example 9
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example 10
Source Project: citrus-admin   Source File: SchemaModelConverter.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SchemaModel convert(String id, SimpleXsdSchema model) {
    SchemaModel converted = convert(model);
    converted.setId(id);
    return converted;
}
 
Example 11
Source Project: citrus-admin   Source File: SchemaRepositoryConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public SimpleXsdSchema mySchema() {
    return new SimpleXsdSchema();
}
 
Example 12
Source Project: spring-boot-samples   Source File: WebServiceConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
	return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}
 
Example 13
Source Project: spring-boot-samples   Source File: WebServiceConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema(){
	return new SimpleXsdSchema(
			new ClassPathResource("META-INF/schemas/hr.xsd"));
}
 
Example 14
Source Project: spring-boot-samples   Source File: WebServiceConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema studentsSchema(){
	return new SimpleXsdSchema(
			new ClassPathResource("META-INF/schemas/students.xsd"));
}
 
Example 15
Source Project: tutorials   Source File: WebServiceConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
    return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}