All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sekmi.histream.etl.config.XmlSource Maven / Gradle / Ivy

There is a newer version: 0.13.3
Show newest version
package de.sekmi.histream.etl.config;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public class XmlSource {

	@XmlAttribute
	URL url;
	@XmlElement
	Transform[] transform;
	
	public static class Transform{
		@XmlAttribute
		URL with;
		@XmlAttribute
		String to; // TODO use Path internally
		
		public Transform(){
		}
		public Transform(String with, String to) throws MalformedURLException{
			this.with = new URL(with);
			this.to = to;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy