weka.core.pmml.jaxbbindings.MiningField Maven / Gradle / Ivy
Show all versions of weka-dev Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.20 at 12:48:21 PM GMT
//
package weka.core.pmml.jaxbbindings;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
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.XmlType;
/**
* Java class for MiningField element declaration.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <element name="MiningField">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Extension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="highValue" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="importance" type="{http://www.dmg.org/PMML-4_1}PROB-NUMBER" />
* <attribute name="invalidValueTreatment" type="{http://www.dmg.org/PMML-4_1}INVALID-VALUE-TREATMENT-METHOD" default="returnInvalid" />
* <attribute name="lowValue" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="missingValueReplacement" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="missingValueTreatment" type="{http://www.dmg.org/PMML-4_1}MISSING-VALUE-TREATMENT-METHOD" />
* <attribute name="name" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="optype" type="{http://www.dmg.org/PMML-4_1}OPTYPE" />
* <attribute name="outliers" type="{http://www.dmg.org/PMML-4_1}OUTLIER-TREATMENT-METHOD" default="asIs" />
* <attribute name="usageType" type="{http://www.dmg.org/PMML-4_1}FIELD-USAGE-TYPE" default="active" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "MiningField")
public class MiningField {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List extension;
@XmlAttribute
protected Double highValue;
@XmlAttribute
protected BigDecimal importance;
@XmlAttribute
protected INVALIDVALUETREATMENTMETHOD invalidValueTreatment;
@XmlAttribute
protected Double lowValue;
@XmlAttribute
protected String missingValueReplacement;
@XmlAttribute
protected MISSINGVALUETREATMENTMETHOD missingValueTreatment;
@XmlAttribute(required = true)
protected String name;
@XmlAttribute
protected OPTYPE optype;
@XmlAttribute
protected OUTLIERTREATMENTMETHOD outliers;
@XmlAttribute
protected FIELDUSAGETYPE usageType;
public MiningField() {}
public MiningField(String name, FIELDUSAGETYPE usageType) {
this.name = name;
this.usageType = usageType;
}
public MiningField(String name, FIELDUSAGETYPE usageType, MISSINGVALUETREATMENTMETHOD missingValueTreatment, String missingValueReplacement) {
this.name = name;
this.usageType = usageType;
this.missingValueTreatment = missingValueTreatment;
this.missingValueReplacement = missingValueReplacement;
}
/**
* Gets the value of the extension property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the extension property.
*
*
* For example, to add a new item, do as follows:
*
* getExtension().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List getExtension() {
if (extension == null) {
extension = new ArrayList();
}
return this.extension;
}
/**
* Gets the value of the highValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getHighValue() {
return highValue;
}
/**
* Sets the value of the highValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setHighValue(Double value) {
this.highValue = value;
}
/**
* Gets the value of the importance property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getImportance() {
return importance;
}
/**
* Sets the value of the importance property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setImportance(BigDecimal value) {
this.importance = value;
}
/**
* Gets the value of the invalidValueTreatment property.
*
* @return
* possible object is
* {@link INVALIDVALUETREATMENTMETHOD }
*
*/
public INVALIDVALUETREATMENTMETHOD getInvalidValueTreatment() {
if (invalidValueTreatment == null) {
return INVALIDVALUETREATMENTMETHOD.RETURN_INVALID;
} else {
return invalidValueTreatment;
}
}
/**
* Sets the value of the invalidValueTreatment property.
*
* @param value
* allowed object is
* {@link INVALIDVALUETREATMENTMETHOD }
*
*/
public void setInvalidValueTreatment(INVALIDVALUETREATMENTMETHOD value) {
this.invalidValueTreatment = value;
}
/**
* Gets the value of the lowValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getLowValue() {
return lowValue;
}
/**
* Sets the value of the lowValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setLowValue(Double value) {
this.lowValue = value;
}
/**
* Gets the value of the missingValueReplacement property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMissingValueReplacement() {
return missingValueReplacement;
}
/**
* Sets the value of the missingValueReplacement property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMissingValueReplacement(String value) {
this.missingValueReplacement = value;
}
/**
* Gets the value of the missingValueTreatment property.
*
* @return
* possible object is
* {@link MISSINGVALUETREATMENTMETHOD }
*
*/
public MISSINGVALUETREATMENTMETHOD getMissingValueTreatment() {
return missingValueTreatment;
}
/**
* Sets the value of the missingValueTreatment property.
*
* @param value
* allowed object is
* {@link MISSINGVALUETREATMENTMETHOD }
*
*/
public void setMissingValueTreatment(MISSINGVALUETREATMENTMETHOD value) {
this.missingValueTreatment = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the optype property.
*
* @return
* possible object is
* {@link OPTYPE }
*
*/
public OPTYPE getOptype() {
return optype;
}
/**
* Sets the value of the optype property.
*
* @param value
* allowed object is
* {@link OPTYPE }
*
*/
public void setOptype(OPTYPE value) {
this.optype = value;
}
/**
* Gets the value of the outliers property.
*
* @return
* possible object is
* {@link OUTLIERTREATMENTMETHOD }
*
*/
public OUTLIERTREATMENTMETHOD getOutliers() {
if (outliers == null) {
return OUTLIERTREATMENTMETHOD.AS_IS;
} else {
return outliers;
}
}
/**
* Sets the value of the outliers property.
*
* @param value
* allowed object is
* {@link OUTLIERTREATMENTMETHOD }
*
*/
public void setOutliers(OUTLIERTREATMENTMETHOD value) {
this.outliers = value;
}
/**
* Gets the value of the usageType property.
*
* @return
* possible object is
* {@link FIELDUSAGETYPE }
*
*/
public FIELDUSAGETYPE getUsageType() {
if (usageType == null) {
return FIELDUSAGETYPE.ACTIVE;
} else {
return usageType;
}
}
/**
* Sets the value of the usageType property.
*
* @param value
* allowed object is
* {@link FIELDUSAGETYPE }
*
*/
public void setUsageType(FIELDUSAGETYPE value) {
this.usageType = value;
}
}