de.micromata.opengis.kml.v_2_2_0.gx.SoundCue 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.gx;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import de.micromata.opengis.kml.v_2_2_0.annotations.Obvious;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SoundCueType", propOrder = {
"href",
"delayedStart"
})
@XmlRootElement(name = "SoundCue", namespace = "http://www.google.com/kml/ext/2.2")
public class SoundCue
extends TourPrimitive
implements Cloneable
{
@XmlElement(namespace = "http://www.opengis.net/kml/2.2")
protected String href;
@XmlElement(defaultValue = "0.0")
protected double delayedStart;
public SoundCue() {
super();
}
/**
*
* @return
* possible object is
* {@link String}
*
*/
public String getHref() {
return href;
}
/**
*
* @param value
* allowed object is
* {@link String}
*
*/
public void setHref(String value) {
this.href = value;
}
/**
*
* @return
* possible object is
* {@link Double}
*
*/
public double getDelayedStart() {
return delayedStart;
}
/**
*
* @param value
* allowed object is
* {@link Double}
*
*/
public void setDelayedStart(double value) {
this.delayedStart = value;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
long temp;
result = ((prime*result)+((href == null)? 0 :href.hashCode()));
temp = Double.doubleToLongBits(delayedStart);
result = ((prime*result)+((int)(temp^(temp >>>(32)))));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if ((obj instanceof SoundCue) == false) {
return false;
}
SoundCue other = ((SoundCue) obj);
if (href == null) {
if (other.href!= null) {
return false;
}
} else {
if (href.equals(other.href) == false) {
return false;
}
}
if (delayedStart!= other.delayedStart) {
return false;
}
return true;
}
/**
* fluent setter
*
*
* @param href
* required parameter
*/
public SoundCue withHref(final String href) {
this.setHref(href);
return this;
}
/**
* fluent setter
*
*
* @param delayedStart
* required parameter
*/
public SoundCue withDelayedStart(final double delayedStart) {
this.setDelayedStart(delayedStart);
return this;
}
@Obvious
@Override
public SoundCue withObjectSimpleExtension(final List