summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/xsd/szr/persondata
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2021-09-15 12:15:26 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2021-09-15 12:15:26 +0200
commit29c73e94ebabcb66a3d0ce56e75c6634d9b0e918 (patch)
tree51a5e77477b2ea21983eaf7fe8fcc7077db2ee95 /src/main/java/at/gv/util/xsd/szr/persondata
parent5a8c04fa5ac93b7e5d4a2f2d9be5aeda1ac9e479 (diff)
downloadegovutils-29c73e94ebabcb66a3d0ce56e75c6634d9b0e918.tar.gz
egovutils-29c73e94ebabcb66a3d0ce56e75c6634d9b0e918.tar.bz2
egovutils-29c73e94ebabcb66a3d0ce56e75c6634d9b0e918.zip
debug code to check missing XML namespaces
Diffstat (limited to 'src/main/java/at/gv/util/xsd/szr/persondata')
-rw-r--r--src/main/java/at/gv/util/xsd/szr/persondata/AlternativeNameType.java36
-rw-r--r--src/main/java/at/gv/util/xsd/szr/persondata/PersonNameType.java4
-rw-r--r--src/main/java/at/gv/util/xsd/szr/persondata/PostalAddressType.java30
3 files changed, 38 insertions, 32 deletions
diff --git a/src/main/java/at/gv/util/xsd/szr/persondata/AlternativeNameType.java b/src/main/java/at/gv/util/xsd/szr/persondata/AlternativeNameType.java
index da6cbf3..d82c008 100644
--- a/src/main/java/at/gv/util/xsd/szr/persondata/AlternativeNameType.java
+++ b/src/main/java/at/gv/util/xsd/szr/persondata/AlternativeNameType.java
@@ -3,7 +3,9 @@ package at.gv.util.xsd.szr.persondata;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
@@ -19,6 +21,7 @@ import javax.xml.bind.annotation.XmlType;
* &lt;sequence&gt;
* &lt;element name="FamilyName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
* &lt;/sequence&gt;
+ * &lt;attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="MaidenName" /&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
@@ -32,8 +35,11 @@ import javax.xml.bind.annotation.XmlType;
})
public class AlternativeNameType {
- @XmlElement(name = "FamilyName", required = true, nillable = true)
+ @XmlElement(name = "FamilyName", required = true)
protected String familyName;
+ @XmlAttribute(name = "Type")
+ @XmlSchemaType(name = "anySimpleType")
+ protected String type;
/**
* Ruft den Wert der familyName-Eigenschaft ab.
@@ -59,4 +65,32 @@ public class AlternativeNameType {
this.familyName = value;
}
+ /**
+ * Ruft den Wert der type-Eigenschaft ab.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ if (type == null) {
+ return "MaidenName";
+ } else {
+ return type;
+ }
+ }
+
+ /**
+ * Legt den Wert der type-Eigenschaft fest.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
}
diff --git a/src/main/java/at/gv/util/xsd/szr/persondata/PersonNameType.java b/src/main/java/at/gv/util/xsd/szr/persondata/PersonNameType.java
index 4a89479..bf384ea 100644
--- a/src/main/java/at/gv/util/xsd/szr/persondata/PersonNameType.java
+++ b/src/main/java/at/gv/util/xsd/szr/persondata/PersonNameType.java
@@ -40,9 +40,9 @@ public class PersonNameType {
@XmlElement(name = "PrefixedDegree")
protected String prefixedDegree;
- @XmlElement(name = "GivenName", required = true, nillable = true)
+ @XmlElement(name = "GivenName", required = true)
protected String givenName;
- @XmlElement(name = "FamilyName", required = true, nillable = true)
+ @XmlElement(name = "FamilyName", required = true)
protected String familyName;
@XmlElement(name = "SuffixedDegree")
protected String suffixedDegree;
diff --git a/src/main/java/at/gv/util/xsd/szr/persondata/PostalAddressType.java b/src/main/java/at/gv/util/xsd/szr/persondata/PostalAddressType.java
index 72cb766..1c472fe 100644
--- a/src/main/java/at/gv/util/xsd/szr/persondata/PostalAddressType.java
+++ b/src/main/java/at/gv/util/xsd/szr/persondata/PostalAddressType.java
@@ -22,7 +22,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;element name="Locality" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;element name="StateCode3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;element name="DeliveryAddress" type="{http://reference.e-government.gv.at/namespace/persondata/20020228#}DeliveryAddressType" minOccurs="0"/&gt;
- * &lt;element name="HistoricRecord" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
@@ -37,8 +36,7 @@ import javax.xml.bind.annotation.XmlType;
"municipality",
"locality",
"stateCode3",
- "deliveryAddress",
- "historicRecord"
+ "deliveryAddress"
})
public class PostalAddressType {
@@ -52,8 +50,6 @@ public class PostalAddressType {
protected String stateCode3;
@XmlElement(name = "DeliveryAddress")
protected DeliveryAddressType deliveryAddress;
- @XmlElement(name = "HistoricRecord")
- protected Boolean historicRecord;
/**
* Ruft den Wert der postalCode-Eigenschaft ab.
@@ -175,28 +171,4 @@ public class PostalAddressType {
this.deliveryAddress = value;
}
- /**
- * Ruft den Wert der historicRecord-Eigenschaft ab.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public Boolean isHistoricRecord() {
- return historicRecord;
- }
-
- /**
- * Legt den Wert der historicRecord-Eigenschaft fest.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setHistoricRecord(Boolean value) {
- this.historicRecord = value;
- }
-
}