/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* Copyright (c) 2013, MPL CodeInside http://codeinside.ru
*/
package ru.roskazna.xsd.common;
import java.util.ArrayList;
import java.util.List;
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.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AddressType", propOrder = {
"view",
"comment",
"addressField"
})
public class AddressType {
@XmlElement(name = "View", required = true)
protected String view;
@XmlElement(name = "Comment")
protected String comment;
@XmlElement(name = "AddressField")
protected List<AddressType.AddressField> addressField;
@XmlAttribute(name = "kind")
protected String kind;
/**
* Gets the value of the view property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getView() {
return view;
}
/**
* Sets the value of the view property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setView(String value) {
this.view = value;
}
/**
* Gets the value of the comment property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getComment() {
return comment;
}
/**
* Sets the value of the comment property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setComment(String value) {
this.comment = value;
}
/**
* Gets the value of the addressField property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the addressField property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAddressField().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AddressType.AddressField }
*
*
*/
public List<AddressType.AddressField> getAddressField() {
if (addressField == null) {
addressField = new ArrayList<AddressType.AddressField>();
}
return this.addressField;
}
/**
* Gets the value of the kind property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKind() {
return kind;
}
/**
* Sets the value of the kind property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKind(String value) {
this.kind = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Type" type="{http://roskazna.ru/xsd/Common}AddressKindType"/>
* <element name="Value">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <minLength value="1"/>
* <maxLength value="255"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"type",
"value"
})
public static class AddressField {
@XmlElement(name = "Type", required = true)
protected AddressKindType type;
@XmlElement(name = "Value", required = true)
protected String value;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link AddressKindType }
*
*/
public AddressKindType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link AddressKindType }
*
*/
public void setType(AddressKindType value) {
this.type = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
}