All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dmg.pmml.Constant Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version

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;


/**
 * 

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="dataType" type="{http://www.dmg.org/PMML-4_2}DATATYPE" />
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) @XmlRootElement(name = "Constant", namespace = "http://www.dmg.org/PMML-4_2") public class Constant extends Expression { @XmlAttribute(name = "dataType") private DataType dataType; @XmlValue private String value; public Constant() { super(); } public Constant(final String value) { super(); this.value = value; } /** * Gets the value of the dataType property. * * @return * possible object is * {@link DataType } * */ public DataType getDataType() { return dataType; } /** * Sets the value of the dataType property. * * @param dataType * allowed object is * {@link DataType } * */ public Constant setDataType(DataType dataType) { this.dataType = dataType; 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 Constant setValue(String value) { this.value = value; return this; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); visitor.pushParent(this); visitor.popParent(); if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy