
org.dmg.pmml.MatCell 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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import org.eclipse.persistence.oxm.annotations.XmlValueExtension;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="row" use="required" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
* <attribute name="col" use="required" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
@XmlRootElement(name = "MatCell", namespace = "http://www.dmg.org/PMML-4_3")
public class MatCell
extends PMMLObject
{
@XmlAttribute(name = "row", required = true)
private int row;
@XmlAttribute(name = "col", required = true)
private int col;
@XmlValue
@XmlValueExtension
private String value;
public MatCell() {
super();
}
public MatCell(final int row, final int col, final String value) {
super();
this.row = row;
this.col = col;
this.value = value;
}
/**
* Gets the value of the row property.
*
*/
public int getRow() {
return row;
}
/**
* Sets the value of the row property.
*
*/
public MatCell setRow(int row) {
this.row = row;
return this;
}
/**
* Gets the value of the col property.
*
*/
public int getCol() {
return col;
}
/**
* Sets the value of the col property.
*
*/
public MatCell setCol(int col) {
this.col = col;
return this;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public MatCell setValue(String value) {
this.value = value;
return this;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
if (status == VisitorAction.CONTINUE) {
visitor.pushParent(this);
visitor.popParent();
}
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy