org.springframework.xml.xsd.SimpleXsdSchema Java Examples

The following examples show how to use org.springframework.xml.xsd.SimpleXsdSchema. 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 File: SchemaModelConverter.java    From citrus-admin with 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 File: WebServiceConfig.java    From springboot-learn with MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
    return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}
 
Example #3
Source File: WebServiceConfig.java    From Spring with 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 File: WebServiceConfig.java    From Spring with 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 File: WebServiceConfig.java    From freeacs with MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
  return new SimpleXsdSchema(new ClassPathResource("xsd/acs.xsd"));
}
 
Example #6
Source File: WebServiceConfig.java    From spring-web-services with MIT License 4 votes vote down vote up
@Bean
public XsdSchema coursesSchema() {
	return new SimpleXsdSchema(new ClassPathResource("course-details.xsd"));
}
 
Example #7
Source File: WebServiceConfig.java    From cloud-native-microservice-strangler-example with GNU General Public License v3.0 4 votes vote down vote up
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example #8
Source File: WebServiceConfig.java    From cloud-native-microservice-strangler-example with GNU General Public License v3.0 4 votes vote down vote up
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example #9
Source File: WebServiceConfig.java    From ddd-strategic-design-spring-boot with Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema customersSchema() {
    return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
 
Example #10
Source File: SchemaModelConverter.java    From citrus-admin with 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 File: SchemaRepositoryConfig.java    From citrus-admin with Apache License 2.0 4 votes vote down vote up
@Bean
public SimpleXsdSchema mySchema() {
    return new SimpleXsdSchema();
}
 
Example #12
Source File: WebServiceConfig.java    From spring-boot-samples with Apache License 2.0 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
	return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}
 
Example #13
Source File: WebServiceConfig.java    From spring-boot-samples with 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 File: WebServiceConfig.java    From spring-boot-samples with 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 File: WebServiceConfig.java    From tutorials with MIT License 4 votes vote down vote up
@Bean
public XsdSchema countriesSchema() {
    return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}