public class DerivedField extends TypeDefinitionField 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"/>
<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 String |
displayName |
protected Expression |
expression |
protected List<Extension> |
extensions |
protected Locator |
locator |
protected FieldName |
name |
protected OpType |
optype |
protected 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.
|
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.
|
void |
setDataType(DataType value)
Sets the value of the dataType property.
|
void |
setDisplayName(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.
|
void |
setSourceLocation(Locator newLocator) |
Locator |
sourceLocation() |
DerivedField |
withDataType(DataType value) |
DerivedField |
withDisplayName(String value) |
DerivedField |
withExpression(Expression value) |
DerivedField |
withExtensions(Collection<Extension> values) |
DerivedField |
withExtensions(Extension... values) |
DerivedField |
withName(FieldName value) |
DerivedField |
withOptype(OpType value) |
DerivedField |
withValues(Collection<Value> values) |
DerivedField |
withValues(Value... values) |
protected Expression expression
protected FieldName name
protected String displayName
protected OpType optype
protected DataType dataType
protected Locator locator
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 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 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 FieldName getName()
public void setName(FieldName value)
public String getDisplayName()
getDisplayName in class FieldStringpublic void setDisplayName(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 DerivedField withExtensions(Extension... values)
public DerivedField withExtensions(Collection<Extension> values)
public DerivedField withExpression(Expression value)
public DerivedField withValues(Value... values)
public DerivedField withValues(Collection<Value> values)
public DerivedField withName(FieldName value)
public DerivedField withDisplayName(String value)
public DerivedField withOptype(OpType value)
public DerivedField 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.