Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

SplitterDatasetsIterator.java
8 8
import java.util.List;
9 9
import java.util.Map;
10 10
import java.util.Queue;
11

  
12 11
import javax.xml.XMLConstants;
13 12
import javax.xml.parsers.DocumentBuilderFactory;
14 13
import javax.xml.transform.Transformer;
......
19 18
import javax.xml.xpath.XPathConstants;
20 19
import javax.xml.xpath.XPathFactory;
21 20

  
21
import com.google.common.collect.Maps;
22 22
import org.apache.commons.lang.StringUtils;
23 23
import org.apache.commons.logging.Log;
24 24
import org.apache.commons.logging.LogFactory;
25
import org.w3c.dom.Document;
26
import org.w3c.dom.Element;
27
import org.w3c.dom.NamedNodeMap;
28
import org.w3c.dom.Node;
29
import org.w3c.dom.NodeList;
25
import org.w3c.dom.*;
30 26

  
31
import com.google.common.collect.Maps;
32

  
33 27
/**
34 28
 * The Class SplitterDatasetsIterator.
35 29
 */
36 30
public class SplitterDatasetsIterator {
37 31

  
38
	/** The Constant log. */
32
	/**
33
	 * The Constant log.
34
	 */
39 35
	private static final Log log = LogFactory.getLog(SplitterDatasetsIterator.class);
40 36

  
41
	/** The end queue. */
37
	/**
38
	 * The end queue.
39
	 */
42 40
	public static String END_QUEUE = "END_QUEUE";
43 41

  
44
	/** The publications. */
42
	/**
43
	 * The publications.
44
	 */
45 45
	private Queue<String> publications;
46 46

  
47
	/** The input epr. */
47
	/**
48
	 * The input epr.
49
	 */
48 50
	private Iterable<String> inputEPR;
49 51

  
50
	/** The root name. */
52
	/**
53
	 * The root name.
54
	 */
51 55
	private String rootName;
52 56

  
53 57
	/**
54 58
	 * Instantiates a new splitter datasets iterator.
55 59
	 *
56
	 * @param datasetsQueue
57
	 *            the datasets queue
58
	 * @param publicationsQueue
59
	 *            the publications queue
60
	 * @param inputEPR
61
	 *            the input epr
62
	 * @param rootName
63
	 *            the root name
60
	 * @param datasetsQueue     the datasets queue
61
	 * @param publicationsQueue the publications queue
62
	 * @param inputEPR          the input epr
63
	 * @param rootName          the root name
64 64
	 */
65 65
	public SplitterDatasetsIterator(final Queue<String> publicationsQueue, final Iterable<String> inputEPR, final String rootName) {
66 66
		this.publications = publicationsQueue;
......
91 91
	/**
92 92
	 * Extract by tag.
93 93
	 *
94
	 * @param inputXML
95
	 *            the input xml
96
	 * @param tag
97
	 *            the tag
94
	 * @param inputXML the input xml
95
	 * @param tag      the tag
98 96
	 * @return the list
99 97
	 */
100 98
	private List<String> extractByTag(final InputStream inputXML, final String tag, final String input) {

Also available in: Unified diff