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>
| Constructor and Description |
|---|
DerivedField() |
DerivedField(OpType opType,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
DerivedField |
addExtensions(Extension... extensions) |
DerivedField |
addValues(Value... values) |
DataType |
getDataType()
Gets the value of the dataType property.
|
String |
getDisplayName()
Gets the value of the displayName property.
|
Expression |
getExpression()
Gets the value of the expression property.
|
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.
|
List<Value> |
getValues()
Gets the value of the values property.
|
boolean |
hasExtensions() |
boolean |
hasValues() |
DerivedField |
setDataType(DataType dataType)
Sets the value of the dataType property.
|
DerivedField |
setDisplayName(String displayName)
Sets the value of the displayName property.
|
DerivedField |
setExpression(Expression expression)
Sets the value of the expression property.
|
DerivedField |
setName(FieldName name)
Sets the value of the name property.
|
DerivedField |
setOpType(OpType opType)
Sets the value of the opType property.
|
getLocator, setLocatorpublic FieldName getName()
public DerivedField setName(FieldName name)
public String getDisplayName()
getDisplayName in class FieldStringpublic DerivedField setDisplayName(String displayName)
setDisplayName in class FielddisplayName - allowed object is
Stringpublic OpType getOpType()
public DerivedField setOpType(OpType opType)
public DataType getDataType()
getDataType in class FieldDataTypepublic DerivedField setDataType(DataType dataType)
setDataType in class FielddataType - 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 Expression getExpression()
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic DerivedField setExpression(Expression expression)
expression - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic 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 boolean hasExtensions()
hasExtensions in interface HasExtensionspublic DerivedField addExtensions(Extension... extensions)
public boolean hasValues()
public DerivedField addValues(Value... values)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.