blob: 830f136873cc4a6f4f57f27c5c98eea845ddcde7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package de.podfetcher.syndication.handler;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Stack;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
/** Contains all relevant information to describe the current state of a SyndHandler.*/
public class HandlerState {
/** Feed that the Handler is currently processing. */
protected Feed feed;
protected FeedItem currentItem;
protected Stack<String> tagstack;
/** Namespaces that have been defined so far. */
protected HashMap<String, Namespace> namespaces;
public HandlerState() {
feed = new Feed();
tagstack = new Stack<String>();
namespaces = new HashMap<String, Namespace>();
}
public Feed getFeed() {
return feed;
}
public FeedItem getCurrentItem() {
return currentItem;
}
public Stack<String> getTagstack() {
return tagstack;
}
}
|