public class DerivedField extends TypeDefinitionField 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"/>
<group ref="{http://www.dmg.org/PMML-4_2}EXPRESSION"/>
<element ref="{http://www.dmg.org/PMML-4_2}Value" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="displayName" 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" use="required" type="{http://www.dmg.org/PMML-4_2}DATATYPE" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
dataType |
protected java.lang.String |
displayName |
protected Expression |
expression |
protected java.util.List<Extension> |
extensions |
protected FieldName |
name |
protected OpType |
opType |
protected java.util.List<Value> |
values |
| Constructor and Description |
|---|
DerivedField() |
DerivedField(OpType opType,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
DataType |
getDataType()
Gets the value of the dataType property.
|
java.lang.String |
getDisplayName()
Gets the value of the displayName property.
|
Expression |
getExpression()
Gets the value of the expression property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
FieldName |
getName()
Gets the value of the name property.
|
OpType |
getOpType()
Gets the value of the opType property.
|
java.util.List<Value> |
getValues()
Gets the value of the values property.
|
boolean |
hasExtensions() |
boolean |
hasValues() |
void |
setDataType(DataType value)
Sets the value of the dataType property.
|
void |
setDisplayName(java.lang.String value)
Sets the value of the displayName property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setName(FieldName value)
Sets the value of the name property.
|
void |
setOpType(OpType value)
Sets the value of the opType property.
|
DerivedField |
withDataType(DataType value) |
DerivedField |
withDisplayName(java.lang.String value) |
DerivedField |
withExpression(Expression value) |
DerivedField |
withExtensions(java.util.Collection<Extension> values) |
DerivedField |
withExtensions(Extension... values) |
DerivedField |
withName(FieldName value) |
DerivedField |
withOpType(OpType value) |
DerivedField |
withValues(java.util.Collection<Value> values) |
DerivedField |
withValues(Value... values) |
getLocator, setLocatorprotected FieldName name
protected java.lang.String displayName
protected OpType opType
protected DataType dataType
protected java.util.List<Extension> extensions
protected Expression expression
protected java.util.List<Value> values
public FieldName getName()
public void setName(FieldName value)
public java.lang.String getDisplayName()
getDisplayName in class FieldStringpublic void setDisplayName(java.lang.String value)
setDisplayName in class Fieldvalue - allowed object is
Stringpublic OpType getOpType()
public void setOpType(OpType value)
public DataType getDataType()
getDataType in class FieldDataTypepublic void setDataType(DataType value)
setDataType in class Fieldvalue - 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 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 java.util.List<Value> getValues()
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 values property.
For example, to add a new item, do as follows:
getValues().add(newItem);
Objects of the following type(s) are allowed in the list
Value
getValues in class TypeDefinitionFieldpublic DerivedField withName(FieldName value)
public DerivedField withDisplayName(java.lang.String value)
public DerivedField withOpType(OpType value)
public DerivedField withDataType(DataType value)
public DerivedField withExtensions(Extension... values)
public DerivedField withExtensions(java.util.Collection<Extension> values)
public DerivedField withExpression(Expression value)
public DerivedField withValues(Value... values)
public DerivedField withValues(java.util.Collection<Value> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasValues()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.