Package slash.navigation.datasources.binding

Examples of slash.navigation.datasources.binding.DatasourcesType


public class DataSourceService {
    private List<DataSource> dataSources = new ArrayList<>();

    public void load(InputStream inputStream) throws JAXBException {
        DatasourcesType datasourcesType = unmarshal(inputStream);
        for(DatasourceType datasourceType : datasourcesType.getDatasource())
            dataSources.add(new DataSourceImpl(datasourceType));
    }
View Full Code Here


    }

    private static String createDataSourceXml(DataSource dataSource, Map<FileAndChecksum, List<FileAndChecksum>> fileAndChecksums, String... filterUrls) throws IOException {
        slash.navigation.datasources.binding.ObjectFactory objectFactory = new slash.navigation.datasources.binding.ObjectFactory();

        DatasourcesType datasourcesType = objectFactory.createDatasourcesType();
        DatasourceType datasourceType = asDatasourceType(dataSource, fileAndChecksums, filterUrls);
        datasourcesType.getDatasource().add(datasourceType);

        return DataSourcesUtil.toXml(datasourcesType);
    }
View Full Code Here

TOP

Related Classes of slash.navigation.datasources.binding.DatasourcesType

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.