de.micromata.opengis.kml.v_2_2_0.xal.ThoroughfareNumberSuffix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaAPIforKml Show documentation
Show all versions of JavaAPIforKml Show documentation
This is JavaAPIforKMml, Micromata's library for use with applications that want to parse, generate and operate on KML. It is an implementation of the OGC KML 2.2 standard. It is written entirely in Java and makes heavy use of JAXB.
package de.micromata.opengis.kml.v_2_2_0.xal;
import java.util.HashMap;
import java.util.Map;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyAttribute;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlValue;
import javax.xml.namespace.QName;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "ThoroughfareNumberSuffix")
public class ThoroughfareNumberSuffix implements Cloneable
{
@XmlValue
protected String content;
@XmlAttribute(name = "NumberSuffixSeparator")
@XmlSchemaType(name = "anySimpleType")
protected String numberSuffixSeparator;
@XmlAttribute(name = "Type")
@XmlSchemaType(name = "anySimpleType")
protected String underscore;
@XmlAttribute(name = "Code")
@XmlSchemaType(name = "anySimpleType")
protected String code;
@XmlAnyAttribute
private Map otherAttributes = new HashMap();
public ThoroughfareNumberSuffix() {
super();
}
/**
*
* @return
* possible object is
* {@link String}
*
*/
public String getContent() {
return content;
}
/**
*
* @param value
* allowed object is
* {@link String}
*
*/
public void setContent(String value) {
this.content = value;
}
/**
*
* @return
* possible object is
* {@link String}
*
*/
public String getNumberSuffixSeparator() {
return numberSuffixSeparator;
}
/**
*
* @param value
* allowed object is
* {@link String}
*
*/
public void setNumberSuffixSeparator(String value) {
this.numberSuffixSeparator = value;
}
/**
*
* @return
* possible object is
* {@link String}
*
*/
public String getUnderscore() {
return underscore;
}
/**
*
* @param value
* allowed object is
* {@link String}
*
*/
public void setUnderscore(String value) {
this.underscore = value;
}
/**
*
* @return
* possible object is
* {@link String}
*
*/
public String getCode() {
return code;
}
/**
*
* @param value
* allowed object is
* {@link String}
*
*/
public void setCode(String value) {
this.code = value;
}
/**
*
* @return
* always non-null
*/
public Map getOtherAttributes() {
return otherAttributes;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = ((prime*result)+((content == null)? 0 :content.hashCode()));
result = ((prime*result)+((numberSuffixSeparator == null)? 0 :numberSuffixSeparator.hashCode()));
result = ((prime*result)+((underscore == null)? 0 :underscore.hashCode()));
result = ((prime*result)+((code == null)? 0 :code.hashCode()));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if ((obj instanceof ThoroughfareNumberSuffix) == false) {
return false;
}
ThoroughfareNumberSuffix other = ((ThoroughfareNumberSuffix) obj);
if (content == null) {
if (other.content!= null) {
return false;
}
} else {
if (content.equals(other.content) == false) {
return false;
}
}
if (numberSuffixSeparator == null) {
if (other.numberSuffixSeparator!= null) {
return false;
}
} else {
if (numberSuffixSeparator.equals(other.numberSuffixSeparator) == false) {
return false;
}
}
if (underscore == null) {
if (other.underscore!= null) {
return false;
}
} else {
if (underscore.equals(other.underscore) == false) {
return false;
}
}
if (code == null) {
if (other.code!= null) {
return false;
}
} else {
if (code.equals(other.code) == false) {
return false;
}
}
return true;
}
/**
* fluent setter
*
*
* @param content
* required parameter
*/
public ThoroughfareNumberSuffix withContent(final String content) {
this.setContent(content);
return this;
}
/**
* fluent setter
*
*
* @param numberSuffixSeparator
* required parameter
*/
public ThoroughfareNumberSuffix withNumberSuffixSeparator(final String numberSuffixSeparator) {
this.setNumberSuffixSeparator(numberSuffixSeparator);
return this;
}
/**
* fluent setter
*
*
* @param underscore
* required parameter
*/
public ThoroughfareNumberSuffix withUnderscore(final String underscore) {
this.setUnderscore(underscore);
return this;
}
/**
* fluent setter
*
*
* @param code
* required parameter
*/
public ThoroughfareNumberSuffix withCode(final String code) {
this.setCode(code);
return this;
}
@Override
public ThoroughfareNumberSuffix clone() {
ThoroughfareNumberSuffix copy;
try {
copy = ((ThoroughfareNumberSuffix) super.clone());
} catch (CloneNotSupportedException _x) {
throw new InternalError((_x.toString()));
}
return copy;
}
}