public class DefineFunction extends PMMLObject implements com.sun.xml.bind.Locatable, HasExtensions
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"/>
<element ref="{http://www.dmg.org/PMML-4_2}ParameterField" maxOccurs="unbounded"/>
<group ref="{http://www.dmg.org/PMML-4_2}EXPRESSION"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="optype" use="required" type="{http://www.dmg.org/PMML-4_2}OPTYPE" />
<attribute name="dataType" type="{http://www.dmg.org/PMML-4_2}DATATYPE" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
dataType |
protected Expression |
expression |
protected List<Extension> |
extensions |
protected Locator |
locator |
protected String |
name |
protected OpType |
optype |
protected List<ParameterField> |
parameterFields |
| Constructor and Description |
|---|
DefineFunction()
Deprecated.
|
DefineFunction(String name,
OpType optype) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
DataType |
getDataType()
Gets the value of the dataType property.
|
Expression |
getExpression()
Gets the value of the expression property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
String |
getName()
Gets the value of the name property.
|
OpType |
getOptype()
Gets the value of the optype property.
|
List<ParameterField> |
getParameterFields()
Gets the value of the parameterFields property.
|
void |
setDataType(DataType value)
Sets the value of the dataType property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setOptype(OpType value)
Sets the value of the optype property.
|
void |
setSourceLocation(Locator newLocator) |
Locator |
sourceLocation() |
DefineFunction |
withDataType(DataType value) |
DefineFunction |
withExpression(Expression value) |
DefineFunction |
withExtensions(Collection<Extension> values) |
DefineFunction |
withExtensions(Extension... values) |
DefineFunction |
withName(String value) |
DefineFunction |
withOptype(OpType value) |
DefineFunction |
withParameterFields(Collection<ParameterField> values) |
DefineFunction |
withParameterFields(ParameterField... values) |
protected List<ParameterField> parameterFields
protected Expression expression
protected String name
protected OpType optype
protected DataType dataType
protected Locator locator
@Deprecated public DefineFunction()
public List<Extension> getExtensions()
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
Extension
getExtensions in interface HasExtensionspublic List<ParameterField> getParameterFields()
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 parameterFields property.
For example, to add a new item, do as follows:
getParameterFields().add(newItem);
Objects of the following type(s) are allowed in the list
ParameterField
public Expression getExpression()
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic void setExpression(Expression value)
value - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic OpType getOptype()
OpTypepublic void setOptype(OpType value)
value - allowed object is
OpTypepublic DataType getDataType()
DataTypepublic void setDataType(DataType value)
value - allowed object is
DataTypepublic DefineFunction withExtensions(Extension... values)
public DefineFunction withExtensions(Collection<Extension> values)
public DefineFunction withParameterFields(ParameterField... values)
public DefineFunction withParameterFields(Collection<ParameterField> values)
public DefineFunction withExpression(Expression value)
public DefineFunction withName(String value)
public DefineFunction withOptype(OpType value)
public DefineFunction withDataType(DataType value)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.