diff options
Diffstat (limited to 'src/main/java/at/gv/util/xsd/szr/persondata')
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; * <sequence> * <element name="FamilyName" type="{http://www.w3.org/2001/XMLSchema}string"/> * </sequence> + * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="MaidenName" /> * </restriction> * </complexContent> * </complexType> @@ -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; * <element name="Locality" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="StateCode3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="DeliveryAddress" type="{http://reference.e-government.gv.at/namespace/persondata/20020228#}DeliveryAddressType" minOccurs="0"/> - * <element name="HistoricRecord" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -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; - } - } |