Package com.consol.citrus.model.config.core

Examples of com.consol.citrus.model.config.core.Schema


*/
public class SchemaSpringBeanConverter implements SpringBeanConverter<Schema> {

    @Override
    public Schema convert(SpringBean springBean) {
        Schema schema = new ObjectFactory().createSchema();

        for (Property property : springBean.getProperties()) {
            if (property.getName().equals("xsd")) {
                schema.setLocation(property.getValue());
            }
        }

        schema.setId(StringUtils.hasText(springBean.getId()) ? springBean.getId() : String.valueOf(System.currentTimeMillis()));

        return schema;
    }
View Full Code Here


     * @param projectConfigFile
     * @param id
     * @return
     */
    public Schema getSchema(File projectConfigFile, String id) {
        Schema schema = springBeanService.getBeanDefinition(projectConfigFile, id, Schema.class);

        if (schema == null) {
            SpringBean springBean = springBeanService.getBeanDefinition(projectConfigFile, id, SpringBean.class);
            if (springBean != null) {
                schema = schemaSpringBeanConverter.convert(springBean);
View Full Code Here

TOP

Related Classes of com.consol.citrus.model.config.core.Schema

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.