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

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

There is a newer version: 1.6.5
Show newest version

package org.dmg.pmml;

import java.util.ArrayList;
import java.util.Collection;
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.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>
 *         <element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element ref="{http://www.dmg.org/PMML-4_2}TableLocator"/>
 *           <element ref="{http://www.dmg.org/PMML-4_2}InlineTable"/>
 *         </choice>
 *       </sequence>
 *       <attribute name="inField" type="{http://www.w3.org/2001/XMLSchema}string" default="string" />
 *       <attribute name="outField" type="{http://www.w3.org/2001/XMLSchema}string" default="stem" />
 *       <attribute name="regexField" type="{http://www.w3.org/2001/XMLSchema}string" default="regex" />
 *       <attribute name="recursive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="isCaseSensitive" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="maxLevenshteinDistance" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="wordSeparatorCharacterRE" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "extensions", "tableLocator", "inlineTable" }) @XmlRootElement(name = "TextIndexNormalization") @Added(Version.PMML_4_2) public class TextIndexNormalization extends PMMLObject implements Locatable, HasExtensions { @XmlElement(name = "Extension") protected List extensions; @XmlElement(name = "TableLocator") protected TableLocator tableLocator; @XmlElement(name = "InlineTable") protected InlineTable inlineTable; @XmlAttribute(name = "inField") protected String inField; @XmlAttribute(name = "outField") protected String outField; @XmlAttribute(name = "regexField") protected String regexField; @XmlAttribute(name = "recursive") protected Boolean recursive; @XmlAttribute(name = "isCaseSensitive") protected String isCaseSensitive; @XmlAttribute(name = "maxLevenshteinDistance") protected Integer maxLevenshteinDistance; @XmlAttribute(name = "wordSeparatorCharacterRE") protected String wordSeparatorCharacterRE; @XmlLocation @XmlTransient protected Locator locator; /** * Gets the value of the extensions 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 extensions property. * *

* For example, to add a new item, do as follows: *

     *    getExtensions().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Extension } * * */ public List getExtensions() { if (extensions == null) { extensions = new ArrayList(); } return this.extensions; } /** * Gets the value of the tableLocator property. * * @return * possible object is * {@link TableLocator } * */ public TableLocator getTableLocator() { return tableLocator; } /** * Sets the value of the tableLocator property. * * @param value * allowed object is * {@link TableLocator } * */ public void setTableLocator(TableLocator value) { this.tableLocator = value; } /** * Gets the value of the inlineTable property. * * @return * possible object is * {@link InlineTable } * */ public InlineTable getInlineTable() { return inlineTable; } /** * Sets the value of the inlineTable property. * * @param value * allowed object is * {@link InlineTable } * */ public void setInlineTable(InlineTable value) { this.inlineTable = value; } /** * Gets the value of the inField property. * * @return * possible object is * {@link String } * */ public String getInField() { if (inField == null) { return "string"; } else { return inField; } } /** * Sets the value of the inField property. * * @param value * allowed object is * {@link String } * */ public void setInField(String value) { this.inField = value; } /** * Gets the value of the outField property. * * @return * possible object is * {@link String } * */ public String getOutField() { if (outField == null) { return "stem"; } else { return outField; } } /** * Sets the value of the outField property. * * @param value * allowed object is * {@link String } * */ public void setOutField(String value) { this.outField = value; } /** * Gets the value of the regexField property. * * @return * possible object is * {@link String } * */ public String getRegexField() { if (regexField == null) { return "regex"; } else { return regexField; } } /** * Sets the value of the regexField property. * * @param value * allowed object is * {@link String } * */ public void setRegexField(String value) { this.regexField = value; } /** * Gets the value of the recursive property. * * @return * possible object is * {@link Boolean } * */ public boolean isRecursive() { if (recursive == null) { return false; } else { return recursive; } } /** * Sets the value of the recursive property. * * @param value * allowed object is * {@link Boolean } * */ public void setRecursive(Boolean value) { this.recursive = value; } /** * Gets the value of the isCaseSensitive property. * * @return * possible object is * {@link String } * */ public String getIsCaseSensitive() { return isCaseSensitive; } /** * Sets the value of the isCaseSensitive property. * * @param value * allowed object is * {@link String } * */ public void setIsCaseSensitive(String value) { this.isCaseSensitive = value; } /** * Gets the value of the maxLevenshteinDistance property. * * @return * possible object is * {@link Integer } * */ public Integer getMaxLevenshteinDistance() { return maxLevenshteinDistance; } /** * Sets the value of the maxLevenshteinDistance property. * * @param value * allowed object is * {@link Integer } * */ public void setMaxLevenshteinDistance(Integer value) { this.maxLevenshteinDistance = value; } /** * Gets the value of the wordSeparatorCharacterRE property. * * @return * possible object is * {@link String } * */ public String getWordSeparatorCharacterRE() { return wordSeparatorCharacterRE; } /** * Sets the value of the wordSeparatorCharacterRE property. * * @param value * allowed object is * {@link String } * */ public void setWordSeparatorCharacterRE(String value) { this.wordSeparatorCharacterRE = value; } public TextIndexNormalization withExtensions(Extension... values) { if (values!= null) { for (Extension value: values) { getExtensions().add(value); } } return this; } public TextIndexNormalization withExtensions(Collection values) { if (values!= null) { getExtensions().addAll(values); } return this; } public TextIndexNormalization withTableLocator(TableLocator value) { setTableLocator(value); return this; } public TextIndexNormalization withInlineTable(InlineTable value) { setInlineTable(value); return this; } public TextIndexNormalization withInField(String value) { setInField(value); return this; } public TextIndexNormalization withOutField(String value) { setOutField(value); return this; } public TextIndexNormalization withRegexField(String value) { setRegexField(value); return this; } public TextIndexNormalization withRecursive(Boolean value) { setRecursive(value); return this; } public TextIndexNormalization withIsCaseSensitive(String value) { setIsCaseSensitive(value); return this; } public TextIndexNormalization withMaxLevenshteinDistance(Integer value) { setMaxLevenshteinDistance(value); return this; } public TextIndexNormalization withWordSeparatorCharacterRE(String value) { setWordSeparatorCharacterRE(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); for (int i = 0; (((status == VisitorAction.CONTINUE)&&(this.extensions!= null))&&(i





© 2015 - 2024 Weber Informatics LLC | Privacy Policy