summaryrefslogtreecommitdiff
path: root/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-01-20 14:16:18 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-01-20 14:16:18 +0000
commitbcb50da2b740da9122ae5ca6366582e0efa096bb (patch)
treec20c37e03ddd48e61c98502ba07e38a7c3bb094e /STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java
parent23f82c4d63290cb41dc0fc6ebb86d6cae9a560fe (diff)
downloadmocca-bcb50da2b740da9122ae5ca6366582e0efa096bb.tar.gz
mocca-bcb50da2b740da9122ae5ca6366582e0efa096bb.tar.bz2
mocca-bcb50da2b740da9122ae5ca6366582e0efa096bb.zip
prepare for stal service extension
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@263 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java')
-rw-r--r--STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java30
1 files changed, 18 insertions, 12 deletions
diff --git a/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java b/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java
index 6f8204cc..0f56c3ce 100644
--- a/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java
+++ b/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java
@@ -3,12 +3,14 @@ package at.gv.egiz.stal.service.types;
import java.util.ArrayList;
import java.util.List;
+import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlType;
+//import at.buergerkarte.namespaces.cardchannel.ScriptType;
/**
@@ -24,6 +26,7 @@ import javax.xml.bind.annotation.XmlType;
* &lt;element name="InfoboxReadRequest" type="{http://www.egiz.gv.at/stal}InfoboxReadRequestType"/>
* &lt;element name="SignRequest" type="{http://www.egiz.gv.at/stal}SignRequestType"/>
* &lt;element name="QuitRequest" type="{http://www.egiz.gv.at/stal}QuitRequestType"/>
+ * &lt;element ref="{http://www.egiz.gv.at/stal}OtherRequest"/>
* &lt;/choice>
* &lt;attribute name="SessionId" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
@@ -39,12 +42,13 @@ import javax.xml.bind.annotation.XmlType;
})
public class GetNextRequestResponseType {
- @XmlElements({
- @XmlElement(name = "InfoboxReadRequest", type = InfoboxReadRequestType.class),
- @XmlElement(name = "QuitRequest", type = QuitRequestType.class),
- @XmlElement(name = "SignRequest", type = SignRequestType.class)
+ @XmlElementRefs({
+ @XmlElementRef(name = "SignRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class),
+ @XmlElementRef(name = "QuitRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class),
+ @XmlElementRef(name = "OtherRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class),
+ @XmlElementRef(name = "InfoboxReadRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class)
})
- protected List<RequestType> infoboxReadRequestOrSignRequestOrQuitRequest;
+ protected List<JAXBElement<? extends RequestType>> infoboxReadRequestOrSignRequestOrQuitRequest;
@XmlAttribute(name = "SessionId")
protected String sessionId;
@@ -66,15 +70,17 @@ public class GetNextRequestResponseType {
*
* <p>
* Objects of the following type(s) are allowed in the list
- * {@link InfoboxReadRequestType }
- * {@link QuitRequestType }
- * {@link SignRequestType }
+ * {@link JAXBElement }{@code <}{@link QuitRequestType }{@code >}
+ * {@link JAXBElement }{@code <}{@link RequestType }{@code >}
+ * {@link JAXBElement }{@code <}{@link ScriptType }{@code >}
+ * {@link JAXBElement }{@code <}{@link InfoboxReadRequestType }{@code >}
+ * {@link JAXBElement }{@code <}{@link SignRequestType }{@code >}
*
*
*/
- public List<RequestType> getInfoboxReadRequestOrSignRequestOrQuitRequest() {
+ public List<JAXBElement<? extends RequestType>> getInfoboxReadRequestOrSignRequestOrQuitRequest() {
if (infoboxReadRequestOrSignRequestOrQuitRequest == null) {
- infoboxReadRequestOrSignRequestOrQuitRequest = new ArrayList<RequestType>();
+ infoboxReadRequestOrSignRequestOrQuitRequest = new ArrayList<JAXBElement<? extends RequestType>>();
}
return this.infoboxReadRequestOrSignRequestOrQuitRequest;
}