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

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

There is a newer version: 1.6.11
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.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
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="n" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
 *       <attribute name="type" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <enumeration value="int"/>
 *             <enumeration value="real"/>
 *             <enumeration value="string"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) @XmlRootElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_3") public class Array extends PMMLObject { @XmlAttribute(name = "n") private Integer n; @XmlAttribute(name = "type", required = true) private Array.Type type; @XmlValue @XmlValueExtension private String value; public Array() { super(); } public Array(final Array.Type type, final String value) { super(); this.type = type; this.value = value; } /** * Gets the value of the n property. * * @return * possible object is * {@link Integer } * */ public Integer getN() { return n; } /** * Sets the value of the n property. * * @param n * allowed object is * {@link Integer } * */ public Array setN(Integer n) { this.n = n; return this; } /** * Gets the value of the type property. * * @return * possible object is * {@link Array.Type } * */ public Array.Type getType() { return type; } /** * Sets the value of the type property. * * @param type * allowed object is * {@link Array.Type } * */ public Array setType(Array.Type type) { this.type = type; 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 Array 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; } /** *

Java class for null. * *

The following schema fragment specifies the expected content contained within this class. *

*

     * <simpleType>
     *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     *     <enumeration value="int"/>
     *     <enumeration value="real"/>
     *     <enumeration value="string"/>
     *   </restriction>
     * </simpleType>
     * 
* */ @XmlType(name = "") @XmlEnum public enum Type { @XmlEnumValue("int") INT("int"), @XmlEnumValue("real") REAL("real"), @XmlEnumValue("string") STRING("string"); private final String value; Type(String v) { value = v; } public String value() { return value; } public static Array.Type fromValue(String v) { for (Array.Type c: Array.Type.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy