// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.10.22 at 02:05:39 PM MSK // package server.mcsv1002.request; import javax.xml.bind.annotation.*; import java.util.HashMap; import java.util.Map; /** * <p>Java class for housebookExtractionRequest complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="housebookExtractionRequest"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="regionCode" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectDistrict" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectCity" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectTown" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectStreet" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectHouse" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectCorpus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectBuilding" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectFlat" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectCadastrNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="objectConditNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "housebookExtractionRequest", propOrder = { "regionCode", "objectDistrict", "objectCity", "objectTown", "objectStreet", "objectHouse", "objectCorpus", "objectBuilding", "objectFlat", "objectCadastrNumber", "objectConditNumber" }) @XmlRootElement(name = "housebookExtractionRequest") public class HouseBookExtractionRequest { @XmlElement(required = true) protected String regionCode; protected String objectDistrict; @XmlElement(required = true) protected String objectCity; protected String objectTown; @XmlElement(required = true) protected String objectStreet; @XmlElement(required = true) protected String objectHouse; protected String objectCorpus; protected String objectBuilding; protected String objectFlat; protected String objectCadastrNumber; protected String objectConditNumber; public void checkRequiredFields() { if ("".equals(defaultString(regionCode))) { throw new IllegalStateException("Не указан regionCode"); } if ("".equals(defaultString(objectCity))) { throw new IllegalStateException("Не указан objectCity"); } if ("".equals(defaultString(objectStreet))) { throw new IllegalStateException("Не указан objectStreet"); } if ("".equals(defaultString(objectHouse))) { throw new IllegalStateException("Не указан objectHouse"); } } private String defaultString(String str) { if (str == null) { return ""; } else { return str.trim(); } } /** * Gets the value of the regionCode property. * * @return * possible object is * {@link String } * */ public String getRegionCode() { return regionCode; } /** * Sets the value of the regionCode property. * * @param value * allowed object is * {@link String } * */ public void setRegionCode(String value) { this.regionCode = value; } /** * Gets the value of the objectDistrict property. * * @return * possible object is * {@link String } * */ public String getObjectDistrict() { return objectDistrict; } /** * Sets the value of the objectDistrict property. * * @param value * allowed object is * {@link String } * */ public void setObjectDistrict(String value) { this.objectDistrict = value; } /** * Gets the value of the objectCity property. * * @return * possible object is * {@link String } * */ public String getObjectCity() { return objectCity; } /** * Sets the value of the objectCity property. * * @param value * allowed object is * {@link String } * */ public void setObjectCity(String value) { this.objectCity = value; } /** * Gets the value of the objectTown property. * * @return * possible object is * {@link String } * */ public String getObjectTown() { return objectTown; } /** * Sets the value of the objectTown property. * * @param value * allowed object is * {@link String } * */ public void setObjectTown(String value) { this.objectTown = value; } /** * Gets the value of the objectStreet property. * * @return * possible object is * {@link String } * */ public String getObjectStreet() { return objectStreet; } /** * Sets the value of the objectStreet property. * * @param value * allowed object is * {@link String } * */ public void setObjectStreet(String value) { this.objectStreet = value; } /** * Gets the value of the objectHouse property. * * @return * possible object is * {@link String } * */ public String getObjectHouse() { return objectHouse; } /** * Sets the value of the objectHouse property. * * @param value * allowed object is * {@link String } * */ public void setObjectHouse(String value) { this.objectHouse = value; } /** * Gets the value of the objectCorpus property. * * @return * possible object is * {@link String } * */ public String getObjectCorpus() { return objectCorpus; } /** * Sets the value of the objectCorpus property. * * @param value * allowed object is * {@link String } * */ public void setObjectCorpus(String value) { this.objectCorpus = value; } /** * Gets the value of the objectBuilding property. * * @return * possible object is * {@link String } * */ public String getObjectBuilding() { return objectBuilding; } /** * Sets the value of the objectBuilding property. * * @param value * allowed object is * {@link String } * */ public void setObjectBuilding(String value) { this.objectBuilding = value; } /** * Gets the value of the objectFlat property. * * @return * possible object is * {@link String } * */ public String getObjectFlat() { return objectFlat; } /** * Sets the value of the objectFlat property. * * @param value * allowed object is * {@link String } * */ public void setObjectFlat(String value) { this.objectFlat = value; } /** * Gets the value of the objectCadastrNumber property. * * @return * possible object is * {@link String } * */ public String getObjectCadastrNumber() { return objectCadastrNumber; } /** * Sets the value of the objectCadastrNumber property. * * @param value * allowed object is * {@link String } * */ public void setObjectCadastrNumber(String value) { this.objectCadastrNumber = value; } /** * Gets the value of the objectConditNumber property. * * @return * possible object is * {@link String } * */ public String getObjectConditNumber() { return objectConditNumber; } /** * Sets the value of the objectConditNumber property. * * @param value * allowed object is * {@link String } * */ public void setObjectConditNumber(String value) { this.objectConditNumber = value; } public Map<String, Object> makeMapValue() { Map<String, Object> context = new HashMap<String, Object>(11); context.put("result_regionCode", getRegionCode()); context.put("result_objectDistrict", getObjectDistrict()); context.put("result_objectCity", getObjectCity()); context.put("result_objectTown", getObjectTown()); context.put("result_objectStreet", getObjectStreet()); context.put("result_objectHouse", getObjectHouse()); context.put("result_objectCorpus", getObjectCorpus()); context.put("result_objectBuilding", getObjectBuilding()); context.put("result_objectFlat", getObjectFlat()); context.put("result_objectCadastrNumber", getObjectCadastrNumber()); context.put("result_objectConditNumber", getObjectConditNumber()); return context; } }