public class DefineFunction extends PMMLObject implements 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 java.util.List<Extension> |
extensions |
protected java.lang.String |
name |
protected OpType |
opType |
protected java.util.List<ParameterField> |
parameterFields |
| Constructor and Description |
|---|
DefineFunction() |
DefineFunction(java.lang.String name,
OpType opType,
java.util.List<ParameterField> parameterFields) |
| 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.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
OpType |
getOpType()
Gets the value of the opType property.
|
java.util.List<ParameterField> |
getParameterFields()
Gets the value of the parameterFields property.
|
boolean |
hasExtensions() |
boolean |
hasParameterFields() |
void |
setDataType(DataType value)
Sets the value of the dataType property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setOpType(OpType value)
Sets the value of the opType property.
|
DefineFunction |
withDataType(DataType value) |
DefineFunction |
withExpression(Expression value) |
DefineFunction |
withExtensions(java.util.Collection<Extension> values) |
DefineFunction |
withExtensions(Extension... values) |
DefineFunction |
withName(java.lang.String value) |
DefineFunction |
withOpType(OpType value) |
DefineFunction |
withParameterFields(java.util.Collection<ParameterField> values) |
DefineFunction |
withParameterFields(ParameterField... values) |
getLocator, setLocatorprotected java.lang.String name
protected OpType opType
protected DataType dataType
protected java.util.List<Extension> extensions
protected java.util.List<ParameterField> parameterFields
protected Expression expression
public DefineFunction()
public DefineFunction(java.lang.String name,
OpType opType,
java.util.List<ParameterField> parameterFields)
public java.lang.String getName()
Stringpublic void setName(java.lang.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 java.util.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 java.util.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 DefineFunction withName(java.lang.String value)
public DefineFunction withOpType(OpType value)
public DefineFunction withDataType(DataType value)
public DefineFunction withExtensions(Extension... values)
public DefineFunction withExtensions(java.util.Collection<Extension> values)
public DefineFunction withParameterFields(ParameterField... values)
public DefineFunction withParameterFields(java.util.Collection<ParameterField> values)
public DefineFunction withExpression(Expression value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasParameterFields()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.