From c7e92047632432346c13723925f45888461887e9 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 8 Mar 2019 08:07:11 +0100 Subject: add USP_v2 client implementation --- .../xsd/mis/usp_v2/eai/token/ActionTypeType.java | 51 ++++++++ .../usp_v2/eai/token/ModificationTokenRequest.java | 92 +++++++++++++ .../eai/token/ModificationTokenResponse.java | 93 ++++++++++++++ .../eai/token/ModificationTokenResultType.java | 65 ++++++++++ .../usp_v2/eai/token/ModificationTokenType.java | 143 +++++++++++++++++++++ .../xsd/mis/usp_v2/eai/token/ObjectFactory.java | 77 +++++++++++ .../xsd/mis/usp_v2/eai/token/package-info.java | 2 + 7 files changed, 523 insertions(+) create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ActionTypeType.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenRequest.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResponse.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResultType.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenType.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ObjectFactory.java create mode 100644 src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/package-info.java (limited to 'src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token') diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ActionTypeType.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ActionTypeType.java new file mode 100644 index 0000000..bac6108 --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ActionTypeType.java @@ -0,0 +1,51 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für ActionTypeType. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + *

+ *

+ * <simpleType name="ActionTypeType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="CreateMandate"/>
+ *     <enumeration value="TerminateMandate"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ActionTypeType") +@XmlEnum +public enum ActionTypeType { + + @XmlEnumValue("CreateMandate") + CREATE_MANDATE("CreateMandate"), + @XmlEnumValue("TerminateMandate") + TERMINATE_MANDATE("TerminateMandate"); + private final String value; + + ActionTypeType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ActionTypeType fromValue(String v) { + for (ActionTypeType c: ActionTypeType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenRequest.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenRequest.java new file mode 100644 index 0000000..8dc0bdf --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenRequest.java @@ -0,0 +1,92 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any namespace='##other'/>
+ *       </sequence>
+ *       <attribute name="ActionType" type="{http://eai.brz.gv.at/services/vdds/token}ActionTypeType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "any" +}) +@XmlRootElement(name = "ModificationTokenRequest") +public class ModificationTokenRequest { + + @XmlAnyElement(lax = true) + protected Object any; + @XmlAttribute(name = "ActionType") + protected ActionTypeType actionType; + + /** + * Ruft den Wert der any-Eigenschaft ab. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Legt den Wert der any-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + + /** + * Ruft den Wert der actionType-Eigenschaft ab. + * + * @return + * possible object is + * {@link ActionTypeType } + * + */ + public ActionTypeType getActionType() { + return actionType; + } + + /** + * Legt den Wert der actionType-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ActionTypeType } + * + */ + public void setActionType(ActionTypeType value) { + this.actionType = value; + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResponse.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResponse.java new file mode 100644 index 0000000..f7e895d --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResponse.java @@ -0,0 +1,93 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Result" type="{http://eai.brz.gv.at/services/vdds/token}ModificationTokenResultType"/>
+ *         <any namespace='##other' minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "result", + "any" +}) +@XmlRootElement(name = "ModificationTokenResponse") +public class ModificationTokenResponse { + + @XmlElement(name = "Result", required = true) + protected ModificationTokenResultType result; + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Ruft den Wert der result-Eigenschaft ab. + * + * @return + * possible object is + * {@link ModificationTokenResultType } + * + */ + public ModificationTokenResultType getResult() { + return result; + } + + /** + * Legt den Wert der result-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ModificationTokenResultType } + * + */ + public void setResult(ModificationTokenResultType value) { + this.result = value; + } + + /** + * Ruft den Wert der any-Eigenschaft ab. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Legt den Wert der any-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResultType.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResultType.java new file mode 100644 index 0000000..11ee649 --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenResultType.java @@ -0,0 +1,65 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import at.gv.util.xsd.mis.usp_v2.eai.common.ReferableResultType; + + +/** + *

Java-Klasse für ModificationTokenResultType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="ModificationTokenResultType">
+ *   <complexContent>
+ *     <extension base="{http://eai.brz.gv.at/services/vdds/common}ReferableResultType">
+ *       <sequence>
+ *         <element ref="{http://eai.brz.gv.at/services/vdds/token}ModificationToken" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ModificationTokenResultType", propOrder = { + "modificationToken" +}) +public class ModificationTokenResultType + extends ReferableResultType +{ + + @XmlElement(name = "ModificationToken") + protected ModificationTokenType modificationToken; + + /** + * Ruft den Wert der modificationToken-Eigenschaft ab. + * + * @return + * possible object is + * {@link ModificationTokenType } + * + */ + public ModificationTokenType getModificationToken() { + return modificationToken; + } + + /** + * Legt den Wert der modificationToken-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ModificationTokenType } + * + */ + public void setModificationToken(ModificationTokenType value) { + this.modificationToken = value; + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenType.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenType.java new file mode 100644 index 0000000..8d91583 --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ModificationTokenType.java @@ -0,0 +1,143 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import java.util.HashMap; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; + + +/** + *

Java-Klasse für ModificationTokenType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="ModificationTokenType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="IssuedAt" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="ValidUntil" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <anyAttribute/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ModificationTokenType", propOrder = { + "value" +}) +public class ModificationTokenType { + + @XmlValue + protected String value; + @XmlAttribute(name = "IssuedAt") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar issuedAt; + @XmlAttribute(name = "ValidUntil") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar validUntil; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Ruft den Wert der value-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Legt den Wert der value-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Ruft den Wert der issuedAt-Eigenschaft ab. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getIssuedAt() { + return issuedAt; + } + + /** + * Legt den Wert der issuedAt-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setIssuedAt(XMLGregorianCalendar value) { + this.issuedAt = value; + } + + /** + * Ruft den Wert der validUntil-Eigenschaft ab. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getValidUntil() { + return validUntil; + } + + /** + * Legt den Wert der validUntil-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setValidUntil(XMLGregorianCalendar value) { + this.validUntil = value; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ObjectFactory.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ObjectFactory.java new file mode 100644 index 0000000..55fd842 --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/ObjectFactory.java @@ -0,0 +1,77 @@ + +package at.gv.util.xsd.mis.usp_v2.eai.token; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the at.gv.util.xsd.mis.usp_v2.eai.token package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ModificationToken_QNAME = new QName("http://eai.brz.gv.at/services/vdds/token", "ModificationToken"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: at.gv.util.xsd.mis.usp_v2.eai.token + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ModificationTokenType } + * + */ + public ModificationTokenType createModificationTokenType() { + return new ModificationTokenType(); + } + + /** + * Create an instance of {@link ModificationTokenRequest } + * + */ + public ModificationTokenRequest createModificationTokenRequest() { + return new ModificationTokenRequest(); + } + + /** + * Create an instance of {@link ModificationTokenResponse } + * + */ + public ModificationTokenResponse createModificationTokenResponse() { + return new ModificationTokenResponse(); + } + + /** + * Create an instance of {@link ModificationTokenResultType } + * + */ + public ModificationTokenResultType createModificationTokenResultType() { + return new ModificationTokenResultType(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ModificationTokenType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://eai.brz.gv.at/services/vdds/token", name = "ModificationToken") + public JAXBElement createModificationToken(ModificationTokenType value) { + return new JAXBElement(_ModificationToken_QNAME, ModificationTokenType.class, null, value); + } + +} diff --git a/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/package-info.java b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/package-info.java new file mode 100644 index 0000000..5eb1f4f --- /dev/null +++ b/src/main/java/at/gv/util/xsd/mis/usp_v2/eai/token/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://eai.brz.gv.at/services/vdds/token", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package at.gv.util.xsd.mis.usp_v2.eai.token; -- cgit v1.2.3