blob: 0f3c6c1b796ea547fc985ee94f11efa7f26b20c4 (
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
|
/*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Remko Tron¨on.
* All rights reserved.
*/
package com.isode.stroke.parser;
import com.isode.stroke.elements.Element;
import com.isode.stroke.elements.Stanza;
public class GenericStanzaParser<T extends Stanza> extends StanzaParser {
private final T stanza_;
public GenericStanzaParser(PayloadParserFactoryCollection collection, T blankStanza) {
super(collection);
stanza_ = blankStanza;
}
public Element getElement() {
return stanza_;
}
public T getStanzaGeneric() {
return stanza_;
}
}
|