public class DefineFunction extends PMMLObject implements HasExpression, HasExtensions, Indexable<String>
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>
| Constructor and Description |
|---|
DefineFunction() |
DefineFunction(String name,
OpType opType,
List<ParameterField> parameterFields) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
DefineFunction |
addExtensions(Extension... extensions) |
DefineFunction |
addParameterFields(ParameterField... parameterFields) |
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 |
getKey() |
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.
|
boolean |
hasExtensions() |
boolean |
hasParameterFields() |
DefineFunction |
setDataType(DataType dataType)
Sets the value of the dataType property.
|
DefineFunction |
setExpression(Expression expression)
Sets the value of the expression property.
|
DefineFunction |
setName(String name)
Sets the value of the name property.
|
DefineFunction |
setOpType(OpType opType)
Sets the value of the opType property.
|
getLocator, setLocatorpublic DefineFunction()
public DefineFunction(String name, OpType opType, List<ParameterField> parameterFields)
public String getName()
Stringpublic DefineFunction setName(String name)
name - allowed object is
Stringpublic OpType getOpType()
OpTypepublic DefineFunction setOpType(OpType opType)
opType - allowed object is
OpTypepublic DataType getDataType()
DataTypepublic DefineFunction setDataType(DataType dataType)
dataType - allowed object is
DataTypepublic 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()
getExpression in interface HasExpressionConstant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic DefineFunction setExpression(Expression expression)
setExpression in interface HasExpressionexpression - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic String getKey()
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic DefineFunction addExtensions(Extension... extensions)
public boolean hasParameterFields()
public DefineFunction addParameterFields(ParameterField... parameterFields)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.