org.dmg.pmml.TimeException Maven / Gradle / Ivy
package org.dmg.pmml;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;
import org.xml.sax.Locator;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.dmg.org/PMML-4_2}INT-ARRAY"/>
* </sequence>
* <attribute name="type" type="{http://www.dmg.org/PMML-4_2}TIME-EXCEPTION-TYPE" />
* <attribute name="count" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "TimeException")
@Added(Version.PMML_4_0)
public class TimeException
extends PMMLObject
implements Locatable
{
@XmlElement(name = "Array")
protected Array array;
@XmlAttribute(name = "type")
protected TimeExceptionType type;
@XmlAttribute(name = "count")
protected Integer count;
@XmlLocation
@XmlTransient
protected Locator locator;
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link Array }
*
*/
public Array getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link Array }
*
*/
public void setArray(Array value) {
this.array = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TimeExceptionType }
*
*/
public TimeExceptionType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TimeExceptionType }
*
*/
public void setType(TimeExceptionType value) {
this.type = value;
}
/**
* Gets the value of the count property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setCount(Integer value) {
this.count = value;
}
public TimeException withArray(Array value) {
setArray(value);
return this;
}
public TimeException withType(TimeExceptionType value) {
setType(value);
return this;
}
public TimeException withCount(Integer value) {
setCount(value);
return this;
}
public Locator sourceLocation() {
return locator;
}
public void setSourceLocation(Locator newLocator) {
locator = newLocator;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
if ((status == VisitorAction.CONTINUE)&&(this.array!= null)) {
status = this.array.accept(visitor);
}
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
}