/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.xal.xml.v20; 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.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.namespace.QName; /** * <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"> * <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/> * <attribute name="NumberType"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> * <enumeration value="Single"/> * <enumeration value="Range"/> * </restriction> * </simpleType> * </attribute> * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> * <attribute name="Indicator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> * <attribute name="IndicatorOccurrence"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> * <enumeration value="Before"/> * <enumeration value="After"/> * </restriction> * </simpleType> * </attribute> * <attribute name="NumberTypeOccurrence"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> * <enumeration value="Before"/> * <enumeration value="After"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "PremiseNumber") public class PremiseNumber { @XmlValue private String content; @XmlAttribute(name = "NumberType") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String numberType; @XmlAttribute(name = "Type") @XmlSchemaType(name = "anySimpleType") private String type; @XmlAttribute(name = "Indicator") @XmlSchemaType(name = "anySimpleType") private String indicator; @XmlAttribute(name = "IndicatorOccurrence") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String indicatorOccurrence; @XmlAttribute(name = "NumberTypeOccurrence") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String numberTypeOccurrence; @XmlAttribute(name = "Code") @XmlSchemaType(name = "anySimpleType") private String code; @XmlAnyAttribute private Map<QName, String> otherAttributes = new HashMap<QName, String>(); /** * Gets the value of the content property. * * @return * possible object is * {@link String } * */ public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(final String value) { this.content = value; } /** * Gets the value of the numberType property. * * @return * possible object is * {@link String } * */ public String getNumberType() { return numberType; } /** * Sets the value of the numberType property. * * @param value * allowed object is * {@link String } * */ public void setNumberType(final String value) { this.numberType = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(final String value) { this.type = value; } /** * Gets the value of the indicator property. * * @return * possible object is * {@link String } * */ public String getIndicator() { return indicator; } /** * Sets the value of the indicator property. * * @param value * allowed object is * {@link String } * */ public void setIndicator(final String value) { this.indicator = value; } /** * Gets the value of the indicatorOccurrence property. * * @return * possible object is * {@link String } * */ public String getIndicatorOccurrence() { return indicatorOccurrence; } /** * Sets the value of the indicatorOccurrence property. * * @param value * allowed object is * {@link String } * */ public void setIndicatorOccurrence(final String value) { this.indicatorOccurrence = value; } /** * Gets the value of the numberTypeOccurrence property. * * @return * possible object is * {@link String } * */ public String getNumberTypeOccurrence() { return numberTypeOccurrence; } /** * Sets the value of the numberTypeOccurrence property. * * @param value * allowed object is * {@link String } * */ public void setNumberTypeOccurrence(final String value) { this.numberTypeOccurrence = value; } /** * Gets the value of the code property. * * @return * possible object is * {@link String } * */ public String getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link String } * */ public void setCode(final String value) { this.code = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * * <p> * 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<QName, String> getOtherAttributes() { return otherAttributes; } }